public class SRPTlsServer extends AbstractTlsServer
Modifier and Type | Field and Description |
---|---|
static int[] |
BASE_CIPHER_SUITES |
protected TlsSRPLoginParameters |
loginParameters |
protected byte[] |
srpIdentity |
protected TlsSRPIdentityManager |
srpIdentityManager |
protected int[] |
supportedCipherSuites |
certificateStatusRequest, clientECPointFormats, clientExtensions, clientSupportedGroups, clientVersion, context, encryptThenMACOffered, keyExchangeFactory, maxFragmentLengthOffered, offeredCipherSuites, offeredCompressionMethods, selectedCipherSuite, selectedCompressionMethod, serverECPointFormats, serverExtensions, serverVersion, supportedSignatureAlgorithms, truncatedHMacOffered
Constructor and Description |
---|
SRPTlsServer(TlsCrypto crypto,
TlsKeyExchangeFactory keyExchangeFactory,
TlsSRPIdentityManager srpIdentityManager) |
SRPTlsServer(TlsCrypto crypto,
TlsSRPIdentityManager srpIdentityManager) |
Modifier and Type | Method and Description |
---|---|
protected TlsKeyExchange |
createSRPKeyExchange(int keyExchange) |
protected int[] |
getCipherSuites() |
TlsCredentials |
getCredentials()
Return server credentials to use.
|
protected TlsCredentialedSigner |
getDSASignerCredentials() |
TlsKeyExchange |
getKeyExchange() |
protected TlsCredentialedSigner |
getRSASignerCredentials() |
int |
getSelectedCipherSuite() |
void |
processClientExtensions(java.util.Hashtable clientExtensions) |
allowEncryptThenMAC, allowTruncatedHMac, checkServerExtensions, getCertificateRequest, getCertificateStatus, getCipher, getCompression, getCompressionMethods, getMaximumNegotiableCurveBits, getMaximumNegotiableFiniteFieldBits, getMaximumVersion, getMinimumVersion, getNewSessionTicket, getSelectedCompressionMethod, getServerExtensions, getServerSupplementalData, getServerVersion, getSessionToResume, init, isSelectableCipherSuite, notifyClientCertificate, notifyClientVersion, notifyFallback, notifyOfferedCipherSuites, notifyOfferedCompressionMethods, processClientSupplementalData, selectCipherSuite, selectCurve, selectDefaultCurve, selectDefaultDHConfig, selectDHConfig, selectDHConfig, selectECConfig
getCrypto, notifyAlertRaised, notifyAlertReceived, notifyHandshakeComplete, notifySecureRenegotiation, shouldUseGMTUnixTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCrypto, notifyAlertRaised, notifyAlertReceived, notifyHandshakeComplete, notifySecureRenegotiation, shouldUseGMTUnixTime
public static final int[] BASE_CIPHER_SUITES
protected TlsSRPIdentityManager srpIdentityManager
protected int[] supportedCipherSuites
protected byte[] srpIdentity
protected TlsSRPLoginParameters loginParameters
public SRPTlsServer(TlsCrypto crypto, TlsSRPIdentityManager srpIdentityManager)
public SRPTlsServer(TlsCrypto crypto, TlsKeyExchangeFactory keyExchangeFactory, TlsSRPIdentityManager srpIdentityManager)
protected TlsCredentialedSigner getDSASignerCredentials() throws java.io.IOException
java.io.IOException
protected TlsCredentialedSigner getRSASignerCredentials() throws java.io.IOException
java.io.IOException
protected int[] getCipherSuites()
getCipherSuites
in class AbstractTlsServer
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 TlsKeyExchange getKeyExchange() throws java.io.IOException
java.io.IOException
protected TlsKeyExchange createSRPKeyExchange(int keyExchange) throws java.io.IOException
java.io.IOException