Package org.bouncycastle.tls
Class SRPTlsClient
- java.lang.Object
-
- org.bouncycastle.tls.AbstractTlsPeer
-
- org.bouncycastle.tls.AbstractTlsClient
-
- org.bouncycastle.tls.SRPTlsClient
-
public class SRPTlsClient extends AbstractTlsClient
-
-
Field Summary
Fields Modifier and Type Field Description protected TlsSRPIdentitysrpIdentity-
Fields inherited from class org.bouncycastle.tls.AbstractTlsClient
cipherSuites, context, protocolVersions, supportedGroups, supportedSignatureAlgorithms
-
-
Constructor Summary
Constructors Constructor Description SRPTlsClient(TlsCrypto crypto, byte[] identity, byte[] password)SRPTlsClient(TlsCrypto crypto, TlsSRPIdentity srpIdentity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TlsAuthenticationgetAuthentication()java.util.HashtablegetClientExtensions()ProtocolVersiongetClientVersion()TlsSRPIdentitygetSRPIdentity()protected int[]getSupportedCipherSuites()voidprocessServerExtensions(java.util.Hashtable serverExtensions)protected booleanrequireSRPServerExtension()-
Methods inherited from class org.bouncycastle.tls.AbstractTlsClient
allowUnexpectedServerExtension, checkForUnexpectedServerExtension, getCertificateStatusRequest, getCipherSuites, getClientSupplementalData, getDHGroupVerifier, getEarlyKeyShareGroups, getNamedGroupRoles, getProtocolNames, getProtocolVersions, getPSKIdentity, getSessionToResume, getSNIServerNames, getSRPConfigVerifier, getSupportedGroups, getSupportedSignatureAlgorithms, init, isFallback, notifyHandshakeBeginning, notifyNewSessionTicket, notifySelectedCipherSuite, notifyServerVersion, notifySessionID, processServerSupplementalData
-
Methods inherited from class org.bouncycastle.tls.AbstractTlsPeer
cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getRenegotiationPolicy, getSupportedVersions, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyHandshakeComplete, notifySecureRenegotiation, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedPadding, 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.tls.TlsPeer
cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyHandshakeComplete, notifySecureRenegotiation, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedPadding, shouldUseGMTUnixTime
-
-
-
-
Field Detail
-
srpIdentity
protected TlsSRPIdentity srpIdentity
-
-
Constructor Detail
-
SRPTlsClient
public SRPTlsClient(TlsCrypto crypto, byte[] identity, byte[] password)
-
SRPTlsClient
public SRPTlsClient(TlsCrypto crypto, TlsSRPIdentity srpIdentity)
-
-
Method Detail
-
getSupportedCipherSuites
protected int[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuitesin classAbstractTlsPeer
-
requireSRPServerExtension
protected boolean requireSRPServerExtension()
-
getClientVersion
public ProtocolVersion getClientVersion()
-
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
-
getSRPIdentity
public TlsSRPIdentity getSRPIdentity()
- Specified by:
getSRPIdentityin interfaceTlsClient- Overrides:
getSRPIdentityin classAbstractTlsClient
-
getAuthentication
public TlsAuthentication getAuthentication() throws java.io.IOException
- Throws:
java.io.IOException
-
-