Top Fields Constructors Methods
org.bouncycastle.tls

public Class SRPTlsClient

extends AbstractTlsClient
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 TlsSRPIdentity
Inherited from org.bouncycastle.tls.AbstractTlsClient:
cipherSuitescontextprotocolVersionssupportedGroupssupportedSignatureAlgorithmssupportedSignatureAlgorithmsCert

Constructor Summary

AccessConstructor and Description
public
SRPTlsClient(TlsCrypto crypto, byte[] identity, byte[] password)

public
SRPTlsClient(TlsCrypto crypto, TlsSRPIdentity srpIdentity)

Method Summary

Modifier and TypeMethod and Description
public TlsAuthentication
public Hashtable<K, V>
public TlsSRPIdentity
protected int[]
protected ProtocolVersion[]
getSupportedVersions()

Overrides org.bouncycastle.tls.AbstractTlsPeer.getSupportedVersions.

Get the ProtocolVersion values that are supported by this peer.

public void
processServerExtensions(Hashtable<K, V>
(Integer -> byte[])
serverExtensions
)

Overrides org.bouncycastle.tls.AbstractTlsClient.processServerExtensions.

Implements org.bouncycastle.tls.TlsClient.processServerExtensions.

The TlsClientProtocol implementation validates that any server extensions received correspond to client extensions sent.

protected boolean
Inherited from org.bouncycastle.tls.AbstractTlsClient:
allowUnexpectedServerExtensioncheckForUnexpectedServerExtensiongetAllowedClientCertificateTypesgetAllowedServerCertificateTypesgetCertificateAuthoritiesgetCertificateStatusRequestgetCipherSuitesgetClientSupplementalDatagetDHGroupVerifiergetEarlyKeyShareGroupsgetExternalPSKsgetMultiCertStatusRequestgetNamedGroupRolesgetNewConnectionIDgetProtocolNamesgetProtocolVersionsgetPSKIdentitygetSessionToResumegetSNIServerNamesgetSRPConfigVerifiergetSupportedGroupsgetSupportedSignatureAlgorithmsgetSupportedSignatureAlgorithmsCertgetTrustedCAIndicationinitisFallbacknotifyHandshakeBeginningnotifyNewSessionTicketnotifySelectedCipherSuitenotifySelectedPSKnotifyServerVersionnotifySessionIDnotifySessionToResumeprocessServerSupplementalDatashouldUseCompatibilityMode

Field Detail

DEFAULT_CIPHER_SUITESback to summary
private static final int[] DEFAULT_CIPHER_SUITES
srpIdentityback to summary
protected TlsSRPIdentity srpIdentity

Constructor Detail

SRPTlsClientback to summary
public SRPTlsClient(TlsCrypto crypto, byte[] identity, byte[] password)
SRPTlsClientback to summary
public SRPTlsClient(TlsCrypto crypto, TlsSRPIdentity srpIdentity)

Method Detail

getAuthenticationback to summary
public TlsAuthentication getAuthentication() throws IOException

Implements org.bouncycastle.tls.TlsClient.getAuthentication.

getClientExtensionsback to summary
public Hashtable<K, V> getClientExtensions() throws IOException

Overrides org.bouncycastle.tls.AbstractTlsClient.getClientExtensions.

Implements org.bouncycastle.tls.TlsClient.getClientExtensions.

getSRPIdentityback to summary
public TlsSRPIdentity getSRPIdentity()

Overrides org.bouncycastle.tls.AbstractTlsClient.getSRPIdentity.

Implements org.bouncycastle.tls.TlsClient.getSRPIdentity.

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.

processServerExtensionsback to summary
public void processServerExtensions(Hashtable<K, V> serverExtensions) throws IOException

Overrides org.bouncycastle.tls.AbstractTlsClient.processServerExtensions.

Implements org.bouncycastle.tls.TlsClient.processServerExtensions.

Doc from org.bouncycastle.tls.TlsClient.processServerExtensions.

The TlsClientProtocol implementation validates that any server extensions received correspond to client extensions sent. If further processing of the server extensions is needed, it can be done in this callback.

Note

This is not called for session resumption handshakes.

Parameters
serverExtensions:Hashtable<K, V>

(Integer -> byte[])

requireSRPServerExtensionback to summary
protected boolean requireSRPServerExtension()