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, processServerSupplementalData, shouldUseCompatibilityMode
allowLegacyResumption, cancel, getCrypto, getHandshakeResendTimeMillis, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyConnectionClosed, notifyHandshakeComplete, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allowLegacyResumption, cancel, getCrypto, getHandshakeResendTimeMillis, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyConnectionClosed, notifyHandshakeComplete, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTime
protected TlsSRPIdentity srpIdentity
public SRPTlsClient(TlsCrypto crypto, byte[] identity, byte[] password)
public SRPTlsClient(TlsCrypto crypto, TlsSRPIdentity srpIdentity)
protected int[] getSupportedCipherSuites()
getSupportedCipherSuites
in class AbstractTlsPeer
protected ProtocolVersion[] getSupportedVersions()
AbstractTlsPeer
ProtocolVersion
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 AbstractTlsPeer
ProtocolVersion
values.protected boolean requireSRPServerExtension()
public java.util.Hashtable getClientExtensions() throws java.io.IOException
getClientExtensions
in interface TlsClient
getClientExtensions
in class AbstractTlsClient
java.io.IOException
public void processServerExtensions(java.util.Hashtable serverExtensions) throws java.io.IOException
TlsClient
processServerExtensions
in interface TlsClient
processServerExtensions
in class AbstractTlsClient
serverExtensions
- (Integer -> byte[])java.io.IOException
public TlsSRPIdentity getSRPIdentity()
getSRPIdentity
in interface TlsClient
getSRPIdentity
in class AbstractTlsClient
public TlsAuthentication getAuthentication() throws java.io.IOException
java.io.IOException