Top Fields Constructors Methods
org.bouncycastle.tls

public Class PSKTlsServer

extends AbstractTlsServer
Class Inheritance
Imports
java.io.IOException, org.bouncycastle.tls.crypto.TlsCrypto

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
PSKTlsServer(TlsCrypto crypto, TlsPSKIdentityManager pskIdentityManager)

Method Summary

Modifier and TypeMethod and Description
public TlsCredentials
getCredentials()

Implements org.bouncycastle.tls.TlsServer.getCredentials.

Return server credentials to use.

public TlsPSKIdentityManager
protected TlsCredentialedDecryptor
protected int[]
protected ProtocolVersion[]
getSupportedVersions()

Overrides org.bouncycastle.tls.AbstractTlsPeer.getSupportedVersions.

Get the ProtocolVersion values that are supported by this peer.

Inherited from org.bouncycastle.tls.AbstractTlsServer:
allowCertificateStatusallowEncryptThenMACallowMultiCertStatusallowTruncatedHMacallowTrustedCAIndicationcheckServerExtensionsgetAllowedClientCertificateTypesgetCertificateRequestgetCertificateStatusgetCipherSuitesgetDetailMessageNoCipherSuitegetDHConfiggetECDHConfiggetExternalPSKgetMaximumDefaultCurveBitsgetMaximumDefaultFiniteFieldBitsgetMaximumNegotiableCurveBitsgetMaximumNegotiableFiniteFieldBitsgetNewConnectionIDgetNewSessionIDgetNewSessionTicketgetProtocolNamesgetProtocolVersionsgetSelectedCipherSuitegetServerExtensionsgetServerExtensionsForConnectiongetServerSupplementalDatagetServerVersiongetSessionToResumegetSRPLoginParametersgetSupportedGroupsinitisSelectableCipherSuitenotifyClientCertificatenotifyClientVersionnotifyFallbacknotifyHandshakeBeginningnotifyOfferedCipherSuitesnotifySessionpreferLocalCipherSuitespreferLocalClientCertificateTypesprocessClientExtensionsprocessClientSupplementalDataselectCipherSuiteselectDHselectDHDefaultselectECDHselectECDHDefaultselectProtocolNameselectProtocolNameshouldSelectProtocolNameEarly

Field Detail

DEFAULT_CIPHER_SUITESback to summary
private static final int[] DEFAULT_CIPHER_SUITES
pskIdentityManagerback to summary
protected TlsPSKIdentityManager pskIdentityManager

Constructor Detail

PSKTlsServerback to summary
public PSKTlsServer(TlsCrypto crypto, TlsPSKIdentityManager pskIdentityManager)

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

getPSKIdentityManagerback to summary
public TlsPSKIdentityManager getPSKIdentityManager()

Overrides org.bouncycastle.tls.AbstractTlsServer.getPSKIdentityManager.

Implements org.bouncycastle.tls.TlsServer.getPSKIdentityManager.

getRSAEncryptionCredentialsback to summary
protected TlsCredentialedDecryptor getRSAEncryptionCredentials() throws IOException
getSupportedCipherSuitesback to summary
protected int[] getSupportedCipherSuites()

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

getSupportedVersionsback to summary
protected ProtocolVersion[] getSupportedVersions()

Overrides org.bouncycastle.tls.AbstractTlsPeer.getSupportedVersions.

Doc from org.bouncycastle.tls.AbstractTlsPeer.getSupportedVersions.

Get the ProtocolVersion values that are supported by this peer.

Warning

Mixing DTLS and TLS versions in the returned array is currently NOT supported. Use a separate (sub-)class for each case.

Returns:ProtocolVersion[]

an array of supported ProtocolVersion values.