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, selectedCipherSuite, selectedProtocolName, serverExtensions, serverVersion, truncatedHMacOffered
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() |
protected TlsCredentialedSigner |
getRSASignerCredentials() |
int |
getSelectedCipherSuite() |
TlsSRPLoginParameters |
getSRPLoginParameters() |
protected int[] |
getSupportedCipherSuites() |
void |
processClientExtensions(java.util.Hashtable clientExtensions) |
allowCertificateStatus, allowEncryptThenMAC, allowTruncatedHMac, checkServerExtensions, getCertificateRequest, getCertificateStatus, getCipherSuites, getDHConfig, getECDHConfig, getMaximumNegotiableCurveBits, getMaximumNegotiableFiniteFieldBits, getNewSessionTicket, getProtocolNames, getPSKIdentityManager, getServerExtensions, getServerSupplementalData, getServerVersion, getSessionToResume, init, isSelectableCipherSuite, notifyClientCertificate, notifyClientVersion, notifyFallback, notifyHandshakeBeginning, notifyOfferedCipherSuites, preferLocalCipherSuites, processClientSupplementalData, selectCipherSuite, selectDH, selectDHDefault, selectECDH, selectECDHDefault, selectProtocolName, selectProtocolName, shouldSelectProtocolNameEarly
cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getRenegotiationPolicy, getSupportedVersions, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyHandshakeComplete, notifySecureRenegotiation, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedPadding, shouldUseGMTUnixTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getRenegotiationPolicy, getSupportedVersions, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyHandshakeComplete, notifySecureRenegotiation, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedPadding, shouldUseGMTUnixTime
protected TlsSRPIdentityManager srpIdentityManager
protected byte[] srpIdentity
protected TlsSRPLoginParameters srpLoginParameters
public SRPTlsServer(TlsCrypto crypto, TlsSRPIdentityManager srpIdentityManager)
protected TlsCredentialedSigner getDSASignerCredentials() throws java.io.IOException
java.io.IOException
protected TlsCredentialedSigner getRSASignerCredentials() throws java.io.IOException
java.io.IOException
protected int[] getSupportedCipherSuites()
getSupportedCipherSuites
in class AbstractTlsServer
public ProtocolVersion getMaximumVersion()
public void processClientExtensions(java.util.Hashtable clientExtensions) throws java.io.IOException
processClientExtensions
in interface TlsServer
processClientExtensions
in class AbstractTlsServer
java.io.IOException
public int getSelectedCipherSuite() throws java.io.IOException
getSelectedCipherSuite
in interface TlsServer
getSelectedCipherSuite
in class AbstractTlsServer
java.io.IOException
public TlsCredentials getCredentials() throws java.io.IOException
TlsServer
TlsCredentialedAgreement
, TlsCredentialedDecryptor
, or
TlsCredentialedSigner
, depending on the key exchange that was negotiated.java.io.IOException
public TlsSRPLoginParameters getSRPLoginParameters() throws java.io.IOException
getSRPLoginParameters
in interface TlsServer
getSRPLoginParameters
in class AbstractTlsServer
java.io.IOException