Package org.bouncycastle.tls
Class DefaultTlsServer
- java.lang.Object
-
- org.bouncycastle.tls.AbstractTlsPeer
-
- org.bouncycastle.tls.AbstractTlsServer
-
- org.bouncycastle.tls.DefaultTlsServer
-
public abstract class DefaultTlsServer extends AbstractTlsServer
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.tls.AbstractTlsServer
certificateStatusRequest, cipherSuites, clientExtensions, clientProtocolNames, clientSentECPointFormats, context, encryptThenMACOffered, maxFragmentLengthOffered, offeredCipherSuites, protocolVersions, selectedCipherSuite, selectedProtocolName, serverExtensions, statusRequestV2, truncatedHMacOffered, trustedCAKeys
-
-
Constructor Summary
Constructors Constructor Description DefaultTlsServer(TlsCrypto crypto)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TlsCredentialsgetCredentials()Return server credentials to use.protected TlsCredentialedSignergetDSASignerCredentials()protected TlsCredentialedSignergetECDSASignerCredentials()protected TlsCredentialedDecryptorgetRSAEncryptionCredentials()protected TlsCredentialedSignergetRSASignerCredentials()protected int[]getSupportedCipherSuites()-
Methods inherited from class org.bouncycastle.tls.AbstractTlsServer
allowCertificateStatus, allowEncryptThenMAC, allowMultiCertStatus, allowTruncatedHMac, allowTrustedCAIndication, checkServerExtensions, getCertificateRequest, getCertificateStatus, getCipherSuites, getDHConfig, getECDHConfig, getExternalPSK, getMaximumNegotiableCurveBits, getMaximumNegotiableFiniteFieldBits, getNewSessionID, getNewSessionTicket, getProtocolNames, getProtocolVersions, getPSKIdentityManager, getSelectedCipherSuite, getServerExtensions, getServerExtensionsForConnection, getServerSupplementalData, getServerVersion, getSessionToResume, getSRPLoginParameters, getSupportedGroups, init, isSelectableCipherSuite, notifyClientCertificate, notifyClientVersion, notifyFallback, notifyHandshakeBeginning, notifyOfferedCipherSuites, notifySession, preferLocalCipherSuites, processClientExtensions, processClientSupplementalData, selectCipherSuite, selectDH, selectDHDefault, selectECDH, selectECDHDefault, selectProtocolName, selectProtocolName, shouldSelectProtocolNameEarly
-
Methods inherited from class org.bouncycastle.tls.AbstractTlsPeer
allowLegacyResumption, cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, getSupportedVersions, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyHandshakeComplete, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTime
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bouncycastle.tls.TlsPeer
allowLegacyResumption, cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyHandshakeComplete, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTime
-
-
-
-
Constructor Detail
-
DefaultTlsServer
public DefaultTlsServer(TlsCrypto crypto)
-
-
Method Detail
-
getDSASignerCredentials
protected TlsCredentialedSigner getDSASignerCredentials() throws java.io.IOException
- Throws:
java.io.IOException
-
getECDSASignerCredentials
protected TlsCredentialedSigner getECDSASignerCredentials() throws java.io.IOException
- Throws:
java.io.IOException
-
getRSAEncryptionCredentials
protected TlsCredentialedDecryptor getRSAEncryptionCredentials() throws java.io.IOException
- Throws:
java.io.IOException
-
getRSASignerCredentials
protected TlsCredentialedSigner getRSASignerCredentials() throws java.io.IOException
- Throws:
java.io.IOException
-
getSupportedCipherSuites
protected int[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuitesin classAbstractTlsPeer
-
getCredentials
public TlsCredentials getCredentials() throws java.io.IOException
Description copied from interface:TlsServerReturn server credentials to use. The returned value may be null, or else it MUST implement exactly one ofTlsCredentialedAgreement,TlsCredentialedDecryptor, orTlsCredentialedSigner, depending on the key exchange that was negotiated.- Returns:
- a TlsCredentials object or null for anonymous key exchanges
- Throws:
java.io.IOException
-
-