public abstract class DefaultTlsServer extends AbstractTlsServer
Modifier and Type | Field and Description |
---|---|
protected static int[] |
BASE_CIPHER_SUITES |
protected int[] |
supportedCipherSuites |
certificateStatusRequest, clientECPointFormats, clientExtensions, clientSupportedGroups, clientVersion, context, encryptThenMACOffered, keyExchangeFactory, maxFragmentLengthOffered, offeredCipherSuites, offeredCompressionMethods, selectedCipherSuite, selectedCompressionMethod, serverECPointFormats, serverExtensions, serverVersion, supportedSignatureAlgorithms, truncatedHMacOffered
Constructor and Description |
---|
DefaultTlsServer(TlsCrypto crypto) |
DefaultTlsServer(TlsCrypto crypto,
TlsKeyExchangeFactory keyExchangeFactory) |
Modifier and Type | Method and Description |
---|---|
protected TlsKeyExchange |
createDHEKeyExchange(int keyExchange) |
protected TlsKeyExchange |
createDHKeyExchange(int keyExchange) |
protected TlsKeyExchange |
createECDHEKeyExchange(int keyExchange) |
protected TlsKeyExchange |
createECDHKeyExchange(int keyExchange) |
protected TlsKeyExchange |
createRSAKeyExchange() |
protected int[] |
getCipherSuites() |
TlsCredentials |
getCredentials()
Return server credentials to use.
|
protected TlsCredentialedSigner |
getDSASignerCredentials() |
protected TlsCredentialedSigner |
getECDSASignerCredentials() |
TlsKeyExchange |
getKeyExchange() |
protected TlsCredentialedDecryptor |
getRSAEncryptionCredentials() |
protected TlsCredentialedSigner |
getRSASignerCredentials() |
allowEncryptThenMAC, allowTruncatedHMac, checkServerExtensions, getCertificateRequest, getCertificateStatus, getCipher, getCompression, getCompressionMethods, getMaximumNegotiableCurveBits, getMaximumNegotiableFiniteFieldBits, getMaximumVersion, getMinimumVersion, getNewSessionTicket, getSelectedCipherSuite, getSelectedCompressionMethod, getServerExtensions, getServerSupplementalData, getServerVersion, getSessionToResume, init, isSelectableCipherSuite, notifyClientCertificate, notifyClientVersion, notifyFallback, notifyOfferedCipherSuites, notifyOfferedCompressionMethods, processClientExtensions, 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
protected static final int[] BASE_CIPHER_SUITES
protected int[] supportedCipherSuites
public DefaultTlsServer(TlsCrypto crypto)
public DefaultTlsServer(TlsCrypto crypto, TlsKeyExchangeFactory keyExchangeFactory)
protected TlsCredentialedSigner getDSASignerCredentials() throws java.io.IOException
java.io.IOException
protected TlsCredentialedSigner getECDSASignerCredentials() throws java.io.IOException
java.io.IOException
protected TlsCredentialedDecryptor getRSAEncryptionCredentials() 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 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 createDHKeyExchange(int keyExchange) throws java.io.IOException
java.io.IOException
protected TlsKeyExchange createDHEKeyExchange(int keyExchange) throws java.io.IOException
java.io.IOException
protected TlsKeyExchange createECDHKeyExchange(int keyExchange) throws java.io.IOException
java.io.IOException
protected TlsKeyExchange createECDHEKeyExchange(int keyExchange) throws java.io.IOException
java.io.IOException
protected TlsKeyExchange createRSAKeyExchange() throws java.io.IOException
java.io.IOException