Top Fields Constructors Methods
org.bouncycastle.tls

public Class SRPTlsServer

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

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
SRPTlsServer(TlsCrypto crypto, TlsSRPIdentityManager srpIdentityManager)

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
public int
public TlsSRPLoginParameters
protected int[]
protected ProtocolVersion[]
getSupportedVersions()

Overrides org.bouncycastle.tls.AbstractTlsPeer.getSupportedVersions.

Get the ProtocolVersion values that are supported by this peer.

public void
Inherited from org.bouncycastle.tls.AbstractTlsServer:
allowCertificateStatusallowEncryptThenMACallowMultiCertStatusallowTruncatedHMacallowTrustedCAIndicationcheckServerExtensionsgetAllowedClientCertificateTypesgetCertificateRequestgetCertificateStatusgetCipherSuitesgetDetailMessageNoCipherSuitegetDHConfiggetECDHConfiggetExternalPSKgetMaximumDefaultCurveBitsgetMaximumDefaultFiniteFieldBitsgetMaximumNegotiableCurveBitsgetMaximumNegotiableFiniteFieldBitsgetNewConnectionIDgetNewSessionIDgetNewSessionTicketgetProtocolNamesgetProtocolVersionsgetPSKIdentityManagergetServerExtensionsgetServerExtensionsForConnectiongetServerSupplementalDatagetServerVersiongetSessionToResumegetSupportedGroupsinitisSelectableCipherSuitenotifyClientCertificatenotifyClientVersionnotifyFallbacknotifyHandshakeBeginningnotifyOfferedCipherSuitesnotifySessionpreferLocalCipherSuitespreferLocalClientCertificateTypesprocessClientSupplementalDataselectCipherSuiteselectDHselectDHDefaultselectECDHselectECDHDefaultselectProtocolNameselectProtocolNameshouldSelectProtocolNameEarly

Field Detail

DEFAULT_CIPHER_SUITESback to summary
private static final int[] DEFAULT_CIPHER_SUITES
srpIdentityback to summary
protected byte[] srpIdentity
srpIdentityManagerback to summary
protected TlsSRPIdentityManager srpIdentityManager
srpLoginParametersback to summary
protected TlsSRPLoginParameters srpLoginParameters

Constructor Detail

SRPTlsServerback to summary
public SRPTlsServer(TlsCrypto crypto, TlsSRPIdentityManager srpIdentityManager)

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
getRSASignerCredentialsback to summary
protected TlsCredentialedSigner getRSASignerCredentials() throws IOException
getSelectedCipherSuiteback to summary
public int getSelectedCipherSuite() throws IOException

Overrides org.bouncycastle.tls.AbstractTlsServer.getSelectedCipherSuite.

Implements org.bouncycastle.tls.TlsServer.getSelectedCipherSuite.

getSRPLoginParametersback to summary
public TlsSRPLoginParameters getSRPLoginParameters() throws IOException

Overrides org.bouncycastle.tls.AbstractTlsServer.getSRPLoginParameters.

Implements org.bouncycastle.tls.TlsServer.getSRPLoginParameters.

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.

processClientExtensionsback to summary
public void processClientExtensions(Hashtable<K, V> clientExtensions) throws IOException

Overrides org.bouncycastle.tls.AbstractTlsServer.processClientExtensions.

Implements org.bouncycastle.tls.TlsServer.processClientExtensions.