Package org.bouncycastle.crypto.tls
Class SRPTlsClient
- java.lang.Object
-
- org.bouncycastle.crypto.tls.AbstractTlsPeer
-
- org.bouncycastle.crypto.tls.AbstractTlsClient
-
- org.bouncycastle.crypto.tls.SRPTlsClient
-
public class SRPTlsClient extends AbstractTlsClient
-
-
Field Summary
Fields Modifier and Type Field Description protected TlsSRPGroupVerifiergroupVerifierprotected byte[]identityprotected byte[]password-
Fields inherited from class org.bouncycastle.crypto.tls.AbstractTlsClient
cipherFactory, clientECPointFormats, context, namedCurves, selectedCipherSuite, selectedCompressionMethod, serverECPointFormats, supportedSignatureAlgorithms
-
-
Constructor Summary
Constructors Constructor Description SRPTlsClient(byte[] identity, byte[] password)SRPTlsClient(TlsCipherFactory cipherFactory, byte[] identity, byte[] password)SRPTlsClient(TlsCipherFactory cipherFactory, TlsSRPGroupVerifier groupVerifier, byte[] identity, byte[] password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TlsKeyExchangecreateSRPKeyExchange(int keyExchange)TlsAuthenticationgetAuthentication()int[]getCipherSuites()java.util.HashtablegetClientExtensions()TlsKeyExchangegetKeyExchange()voidprocessServerExtensions(java.util.Hashtable serverExtensions)protected booleanrequireSRPServerExtension()-
Methods inherited from class org.bouncycastle.crypto.tls.AbstractTlsClient
allowUnexpectedServerExtension, checkForUnexpectedServerExtension, getCipher, getClientHelloRecordLayerVersion, getClientSupplementalData, getClientVersion, getCompression, getCompressionMethods, getMinimumVersion, getSessionToResume, init, isFallback, notifyNewSessionTicket, notifySelectedCipherSuite, notifySelectedCompressionMethod, notifyServerVersion, notifySessionID, processServerSupplementalData
-
Methods inherited from class org.bouncycastle.crypto.tls.AbstractTlsPeer
notifyAlertRaised, notifyAlertReceived, notifyHandshakeComplete, notifySecureRenegotiation, requiresExtendedMasterSecret, shouldUseGMTUnixTime
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bouncycastle.crypto.tls.TlsPeer
notifyAlertRaised, notifyAlertReceived, notifyHandshakeComplete, notifySecureRenegotiation, requiresExtendedMasterSecret, shouldUseGMTUnixTime
-
-
-
-
Field Detail
-
groupVerifier
protected TlsSRPGroupVerifier groupVerifier
-
identity
protected byte[] identity
-
password
protected byte[] password
-
-
Constructor Detail
-
SRPTlsClient
public SRPTlsClient(byte[] identity, byte[] password)
-
SRPTlsClient
public SRPTlsClient(TlsCipherFactory cipherFactory, byte[] identity, byte[] password)
-
SRPTlsClient
public SRPTlsClient(TlsCipherFactory cipherFactory, TlsSRPGroupVerifier groupVerifier, byte[] identity, byte[] password)
-
-
Method Detail
-
requireSRPServerExtension
protected boolean requireSRPServerExtension()
-
getCipherSuites
public int[] getCipherSuites()
-
getClientExtensions
public java.util.Hashtable getClientExtensions() throws java.io.IOException- Specified by:
getClientExtensionsin interfaceTlsClient- Overrides:
getClientExtensionsin classAbstractTlsClient- Throws:
java.io.IOException
-
processServerExtensions
public void processServerExtensions(java.util.Hashtable serverExtensions) throws java.io.IOException- Specified by:
processServerExtensionsin interfaceTlsClient- Overrides:
processServerExtensionsin classAbstractTlsClient- Throws:
java.io.IOException
-
getKeyExchange
public TlsKeyExchange getKeyExchange() throws java.io.IOException
- Throws:
java.io.IOException
-
getAuthentication
public TlsAuthentication getAuthentication() throws java.io.IOException
- Throws:
java.io.IOException
-
createSRPKeyExchange
protected TlsKeyExchange createSRPKeyExchange(int keyExchange)
-
-