public class SRPTlsClient extends AbstractTlsClient
| Modifier and Type | Field and Description |
|---|---|
protected TlsSRPIdentity |
srpIdentity |
cipherSuites, context, protocolVersions, supportedGroups, supportedSignatureAlgorithms, supportedSignatureAlgorithmsCert| Constructor and Description |
|---|
SRPTlsClient(TlsCrypto crypto,
byte[] identity,
byte[] password) |
SRPTlsClient(TlsCrypto crypto,
TlsSRPIdentity srpIdentity) |
| Modifier and Type | Method and Description |
|---|---|
TlsAuthentication |
getAuthentication() |
java.util.Hashtable |
getClientExtensions() |
TlsSRPIdentity |
getSRPIdentity() |
protected int[] |
getSupportedCipherSuites() |
protected ProtocolVersion[] |
getSupportedVersions()
Get the
ProtocolVersion values that are supported by this peer. |
void |
processServerExtensions(java.util.Hashtable serverExtensions)
The TlsClientProtocol implementation validates that any server extensions received correspond
to client extensions sent.
|
protected boolean |
requireSRPServerExtension() |
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, processServerSupplementalDataallowLegacyResumption, cancel, getCrypto, getHandshakeResendTimeMillis, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyConnectionClosed, notifyHandshakeComplete, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTimeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallowLegacyResumption, cancel, getCrypto, getHandshakeResendTimeMillis, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyConnectionClosed, notifyHandshakeComplete, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTimeprotected TlsSRPIdentity srpIdentity
public SRPTlsClient(TlsCrypto crypto, byte[] identity, byte[] password)
public SRPTlsClient(TlsCrypto crypto, TlsSRPIdentity srpIdentity)
protected int[] getSupportedCipherSuites()
getSupportedCipherSuites in class AbstractTlsPeerprotected ProtocolVersion[] getSupportedVersions()
AbstractTlsPeerProtocolVersion 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.getSupportedVersions in class AbstractTlsPeerProtocolVersion values.protected boolean requireSRPServerExtension()
public java.util.Hashtable getClientExtensions()
throws java.io.IOException
getClientExtensions in interface TlsClientgetClientExtensions in class AbstractTlsClientjava.io.IOExceptionpublic void processServerExtensions(java.util.Hashtable serverExtensions)
throws java.io.IOException
TlsClientprocessServerExtensions in interface TlsClientprocessServerExtensions in class AbstractTlsClientserverExtensions - (Integer -> byte[])java.io.IOExceptionpublic TlsSRPIdentity getSRPIdentity()
getSRPIdentity in interface TlsClientgetSRPIdentity in class AbstractTlsClientpublic TlsAuthentication getAuthentication() throws java.io.IOException
java.io.IOException