Package org.bouncycastle.tls
Class SRPTlsClient
java.lang.Object
org.bouncycastle.tls.AbstractTlsPeer
org.bouncycastle.tls.AbstractTlsClient
org.bouncycastle.tls.SRPTlsClient
-
Field Summary
FieldsFields inherited from class org.bouncycastle.tls.AbstractTlsClient
cipherSuites, context, protocolVersions, supportedGroups, supportedSignatureAlgorithms, supportedSignatureAlgorithmsCert -
Constructor Summary
ConstructorsConstructorDescriptionSRPTlsClient(TlsCrypto crypto, byte[] identity, byte[] password) SRPTlsClient(TlsCrypto crypto, TlsSRPIdentity srpIdentity) -
Method Summary
Modifier and TypeMethodDescriptionprotected int[]protected ProtocolVersion[]Get theProtocolVersionvalues that are supported by this peer.voidprocessServerExtensions(Hashtable serverExtensions) The TlsClientProtocol implementation validates that any server extensions received correspond to client extensions sent.protected booleanMethods 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, shouldUseCompatibilityModeMethods 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, shouldUseGMTUnixTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getSupportedCipherSuitesin classAbstractTlsPeer
-
getSupportedVersions
Description copied from class:AbstractTlsPeerGet theProtocolVersionvalues 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:
getSupportedVersionsin classAbstractTlsPeer- Returns:
- an array of supported
ProtocolVersionvalues.
-
requireSRPServerExtension
protected boolean requireSRPServerExtension() -
getClientExtensions
- Specified by:
getClientExtensionsin interfaceTlsClient- Overrides:
getClientExtensionsin classAbstractTlsClient- Throws:
IOException
-
processServerExtensions
Description copied from interface:TlsClientThe 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:
processServerExtensionsin interfaceTlsClient- Overrides:
processServerExtensionsin classAbstractTlsClient- Parameters:
serverExtensions- (Integer -> byte[])- Throws:
IOException
-
getSRPIdentity
- Specified by:
getSRPIdentityin interfaceTlsClient- Overrides:
getSRPIdentityin classAbstractTlsClient
-
getAuthentication
- Throws:
IOException
-