public class SRPTlsServer extends AbstractTlsServer
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
srpIdentity |
protected TlsSRPIdentityManager |
srpIdentityManager |
protected TlsSRPLoginParameters |
srpLoginParameters |
certificateStatusRequest, cipherSuites, clientExtensions, clientProtocolNames, clientSentECPointFormats, context, encryptThenMACOffered, maxFragmentLengthOffered, offeredCipherSuites, protocolVersions, selectedCipherSuite, selectedProtocolName, serverExtensions, statusRequestV2, truncatedHMacOffered, trustedCAKeys| Constructor and Description |
|---|
SRPTlsServer(TlsCrypto crypto,
TlsSRPIdentityManager srpIdentityManager) |
| Modifier and Type | Method and Description |
|---|---|
TlsCredentials |
getCredentials()
Return server credentials to use.
|
protected TlsCredentialedSigner |
getDSASignerCredentials() |
ProtocolVersion |
getMaximumVersion()
Deprecated.
Unused; will be removed
|
protected TlsCredentialedSigner |
getRSASignerCredentials() |
int |
getSelectedCipherSuite() |
TlsSRPLoginParameters |
getSRPLoginParameters() |
protected int[] |
getSupportedCipherSuites() |
protected ProtocolVersion[] |
getSupportedVersions()
Get the
ProtocolVersion values that are supported by this peer. |
void |
processClientExtensions(java.util.Hashtable clientExtensions) |
allowCertificateStatus, allowEncryptThenMAC, allowMultiCertStatus, allowTruncatedHMac, allowTrustedCAIndication, checkServerExtensions, getCertificateRequest, getCertificateStatus, getCipherSuites, getDHConfig, getECDHConfig, getExternalPSK, getMaximumNegotiableCurveBits, getMaximumNegotiableFiniteFieldBits, getNewSessionID, getNewSessionTicket, getProtocolNames, getProtocolVersions, getPSKIdentityManager, getServerExtensions, getServerExtensionsForConnection, getServerSupplementalData, getServerVersion, getSessionToResume, getSupportedGroups, init, isSelectableCipherSuite, notifyClientCertificate, notifyClientVersion, notifyFallback, notifyHandshakeBeginning, notifyOfferedCipherSuites, notifySession, preferLocalCipherSuites, processClientSupplementalData, selectCipherSuite, selectDH, selectDHDefault, selectECDH, selectECDHDefault, selectProtocolName, selectProtocolName, shouldSelectProtocolNameEarlyallowLegacyResumption, cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyHandshakeComplete, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTimeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallowLegacyResumption, cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyHandshakeComplete, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTimeprotected TlsSRPIdentityManager srpIdentityManager
protected byte[] srpIdentity
protected TlsSRPLoginParameters srpLoginParameters
public SRPTlsServer(TlsCrypto crypto, TlsSRPIdentityManager srpIdentityManager)
protected TlsCredentialedSigner getDSASignerCredentials() throws java.io.IOException
java.io.IOExceptionprotected TlsCredentialedSigner getRSASignerCredentials() throws java.io.IOException
java.io.IOExceptionprotected 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 int[] getSupportedCipherSuites()
getSupportedCipherSuites in class AbstractTlsPeerpublic ProtocolVersion getMaximumVersion()
public void processClientExtensions(java.util.Hashtable clientExtensions)
throws java.io.IOException
processClientExtensions in interface TlsServerprocessClientExtensions in class AbstractTlsServerjava.io.IOExceptionpublic int getSelectedCipherSuite()
throws java.io.IOException
getSelectedCipherSuite in interface TlsServergetSelectedCipherSuite in class AbstractTlsServerjava.io.IOExceptionpublic TlsCredentials getCredentials() throws java.io.IOException
TlsServerTlsCredentialedAgreement, TlsCredentialedDecryptor, or
TlsCredentialedSigner, depending on the key exchange that was negotiated.java.io.IOExceptionpublic TlsSRPLoginParameters getSRPLoginParameters() throws java.io.IOException
getSRPLoginParameters in interface TlsServergetSRPLoginParameters in class AbstractTlsServerjava.io.IOException