Package org.bouncycastle.tls
Class SRPTlsClient
java.lang.Object
org.bouncycastle.tls.AbstractTlsPeer
org.bouncycastle.tls.AbstractTlsClient
org.bouncycastle.tls.SRPTlsClient
-
Field Summary
Fields inherited from class org.bouncycastle.tls.AbstractTlsClient
cipherSuites, context, protocolVersions, supportedGroups, supportedSignatureAlgorithms, supportedSignatureAlgorithmsCert
-
Constructor Summary
ConstructorDescriptionSRPTlsClient
(TlsCrypto crypto, byte[] identity, byte[] password) SRPTlsClient
(TlsCrypto crypto, TlsSRPIdentity srpIdentity) -
Method Summary
Modifier and TypeMethodDescriptionprotected int[]
protected ProtocolVersion[]
Get theProtocolVersion
values that are supported by this peer.void
processServerExtensions
(Hashtable serverExtensions) The TlsClientProtocol implementation validates that any server extensions received correspond to client extensions sent.protected boolean
Methods inherited from class org.bouncycastle.tls.AbstractTlsClient
allowUnexpectedServerExtension, checkForUnexpectedServerExtension, getAllowedClientCertificateTypes, getAllowedServerCertificateTypes, getCertificateAuthorities, getCertificateStatusRequest, getCipherSuites, getClientSupplementalData, getDHGroupVerifier, getEarlyKeyShareGroups, getExternalPSKs, getMultiCertStatusRequest, getNamedGroupRoles, getNewConnectionID, getProtocolNames, getProtocolVersions, getPSKIdentity, getSessionToResume, getSNIServerNames, getSRPConfigVerifier, getSupportedGroups, getSupportedSignatureAlgorithms, getSupportedSignatureAlgorithmsCert, getTrustedCAIndication, init, isFallback, notifyHandshakeBeginning, notifyNewSessionTicket, notifySelectedCipherSuite, notifySelectedPSK, notifyServerVersion, notifySessionID, notifySessionToResume, processServerSupplementalData, shouldUseCompatibilityMode
Methods inherited from class org.bouncycastle.tls.AbstractTlsPeer
allowLegacyResumption, cancel, getCrypto, getHandshakeResendTimeMillis, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyConnectionClosed, notifyHandshakeComplete, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, 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
allowLegacyResumption, cancel, getCrypto, getHandshakeResendTimeMillis, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyConnectionClosed, notifyHandshakeComplete, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTime
-
Field Details
-
srpIdentity
-
-
Constructor Details
-
SRPTlsClient
-
SRPTlsClient
-
-
Method Details
-
getSupportedCipherSuites
protected int[] getSupportedCipherSuites()- Specified by:
getSupportedCipherSuites
in classAbstractTlsPeer
-
getSupportedVersions
Description copied from class:AbstractTlsPeer
Get theProtocolVersion
values that are supported by this peer. WARNING: Mixing DTLS and TLS versions in the returned array is currently NOT supported. Use a separate (sub-)class for each case.- Overrides:
getSupportedVersions
in classAbstractTlsPeer
- Returns:
- an array of supported
ProtocolVersion
values.
-
requireSRPServerExtension
protected boolean requireSRPServerExtension() -
getClientExtensions
- Specified by:
getClientExtensions
in interfaceTlsClient
- Overrides:
getClientExtensions
in classAbstractTlsClient
- Throws:
IOException
-
processServerExtensions
Description copied from interface:TlsClient
The TlsClientProtocol implementation validates that any server extensions received correspond to client extensions sent. If further processing of the server extensions is needed, it can be done in this callback. NOTE: This is not called for session resumption handshakes.- Specified by:
processServerExtensions
in interfaceTlsClient
- Overrides:
processServerExtensions
in classAbstractTlsClient
- Parameters:
serverExtensions
- (Integer -> byte[])- Throws:
IOException
-
getSRPIdentity
- Specified by:
getSRPIdentity
in interfaceTlsClient
- Overrides:
getSRPIdentity
in classAbstractTlsClient
-
getAuthentication
- Throws:
IOException
-