Top Fields Constructors Methods
org.bouncycastle.tls

public Class PSKTlsClient

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

Field Summary

Modifier and TypeField and Description
private static final int[]
protected TlsPSKIdentity
Inherited from org.bouncycastle.tls.AbstractTlsClient:
cipherSuitescontextprotocolVersionssupportedGroupssupportedSignatureAlgorithmssupportedSignatureAlgorithmsCert

Constructor Summary

AccessConstructor and Description
public
PSKTlsClient(TlsCrypto crypto, byte[] identity, byte[] psk)

public
PSKTlsClient(TlsCrypto crypto, TlsPSKIdentity pskIdentity)

Method Summary

Modifier and TypeMethod and Description
public TlsAuthentication
public TlsPSKIdentity
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.AbstractTlsClient:
allowUnexpectedServerExtensioncheckForUnexpectedServerExtensiongetAllowedClientCertificateTypesgetAllowedServerCertificateTypesgetCertificateAuthoritiesgetCertificateStatusRequestgetCipherSuitesgetClientExtensionsgetClientSupplementalDatagetDHGroupVerifiergetEarlyKeyShareGroupsgetExternalPSKsgetMultiCertStatusRequestgetNamedGroupRolesgetNewConnectionIDgetProtocolNamesgetProtocolVersionsgetSessionToResumegetSNIServerNamesgetSRPConfigVerifiergetSRPIdentitygetSupportedGroupsgetSupportedSignatureAlgorithmsgetSupportedSignatureAlgorithmsCertgetTrustedCAIndicationinitisFallbacknotifyHandshakeBeginningnotifyNewSessionTicketnotifySelectedCipherSuitenotifySelectedPSKnotifyServerVersionnotifySessionIDnotifySessionToResumeprocessServerExtensionsprocessServerSupplementalDatashouldUseCompatibilityMode

Field Detail

DEFAULT_CIPHER_SUITESback to summary
private static final int[] DEFAULT_CIPHER_SUITES
pskIdentityback to summary
protected TlsPSKIdentity pskIdentity

Constructor Detail

PSKTlsClientback to summary
public PSKTlsClient(TlsCrypto crypto, byte[] identity, byte[] psk)
PSKTlsClientback to summary
public PSKTlsClient(TlsCrypto crypto, TlsPSKIdentity pskIdentity)

Method Detail

getAuthenticationback to summary
public TlsAuthentication getAuthentication() throws IOException

Implements org.bouncycastle.tls.TlsClient.getAuthentication.

getPSKIdentityback to summary
public TlsPSKIdentity getPSKIdentity()

Overrides org.bouncycastle.tls.AbstractTlsClient.getPSKIdentity.

Implements org.bouncycastle.tls.TlsClient.getPSKIdentity.

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.