Top Fields Constructors Methods
org.bouncycastle.tls

public abstract Class DefaultTlsServer

extends AbstractTlsServer
Class Inheritance
Known Direct Subclasses
org.bouncycastle.jsse.provider.ProvTlsServer
Imports
java.io.IOException, org.bouncycastle.tls.crypto.TlsCrypto

Field Summary

Modifier and TypeField and Description
private static final int[]
Inherited from org.bouncycastle.tls.AbstractTlsServer:
certificateStatusRequestcipherSuitesclientExtensionsclientProtocolNamesclientSentECPointFormatscontextencryptThenMACOfferedmaxFragmentLengthOfferedofferedCipherSuitesprotocolVersionsselectedCipherSuiteselectedProtocolNameserverExtensionsstatusRequestV2truncatedHMacOfferedtrustedCAKeys

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public TlsCredentials
getCredentials()

Implements org.bouncycastle.tls.TlsServer.getCredentials.

Return server credentials to use.
protected TlsCredentialedSigner
protected TlsCredentialedSigner
protected TlsCredentialedDecryptor
protected TlsCredentialedSigner
protected int[]
Inherited from org.bouncycastle.tls.AbstractTlsServer:
allowCertificateStatusallowEncryptThenMACallowMultiCertStatusallowTruncatedHMacallowTrustedCAIndicationcheckServerExtensionsgetAllowedClientCertificateTypesgetCertificateRequestgetCertificateStatusgetCipherSuitesgetDetailMessageNoCipherSuitegetDHConfiggetECDHConfiggetExternalPSKgetMaximumNegotiableCurveBitsgetMaximumNegotiableFiniteFieldBitsgetNewConnectionIDgetNewSessionIDgetNewSessionTicketgetProtocolNamesgetProtocolVersionsgetPSKIdentityManagergetSelectedCipherSuitegetServerExtensionsgetServerExtensionsForConnectiongetServerSupplementalDatagetServerVersiongetSessionToResumegetSRPLoginParametersgetSupportedGroupsinitisSelectableCipherSuitenotifyClientCertificatenotifyClientVersionnotifyFallbacknotifyHandshakeBeginningnotifyOfferedCipherSuitesnotifySessionpreferLocalCipherSuitespreferLocalClientCertificateTypesprocessClientExtensionsprocessClientSupplementalDataselectCipherSuiteselectDHselectDHDefaultselectECDHselectECDHDefaultselectProtocolNameselectProtocolNameshouldSelectProtocolNameEarly

Field Detail

DEFAULT_CIPHER_SUITESback to summary
private static final int[] DEFAULT_CIPHER_SUITES

Constructor Detail

DefaultTlsServerback to summary
public DefaultTlsServer(TlsCrypto crypto)

Method Detail

getCredentialsback to summary
public TlsCredentials getCredentials() throws IOException

Implements org.bouncycastle.tls.TlsServer.getCredentials.

Doc from org.bouncycastle.tls.TlsServer.getCredentials.

Return server credentials to use. The returned value may be null, or else it MUST implement exactly one of TlsCredentialedAgreement, TlsCredentialedDecryptor, or TlsCredentialedSigner, depending on the key exchange that was negotiated.

Returns:TlsCredentials

a TlsCredentials object or null for anonymous key exchanges

getDSASignerCredentialsback to summary
protected TlsCredentialedSigner getDSASignerCredentials() throws IOException
getECDSASignerCredentialsback to summary
protected TlsCredentialedSigner getECDSASignerCredentials() throws IOException
getRSAEncryptionCredentialsback to summary
protected TlsCredentialedDecryptor getRSAEncryptionCredentials() throws IOException
getRSASignerCredentialsback to summary
protected TlsCredentialedSigner getRSASignerCredentials() throws IOException
getSupportedCipherSuitesback to summary
protected int[] getSupportedCipherSuites()

Implements abstract org.bouncycastle.tls.AbstractTlsPeer.getSupportedCipherSuites.