Package org.bouncycastle.tls
Class PSKTlsClient
java.lang.Object
org.bouncycastle.tls.AbstractTlsPeer
org.bouncycastle.tls.AbstractTlsClient
org.bouncycastle.tls.PSKTlsClient
-
Field Summary
FieldsFields inherited from class org.bouncycastle.tls.AbstractTlsClient
cipherSuites, context, protocolVersions, supportedGroups, supportedSignatureAlgorithms, supportedSignatureAlgorithmsCert
-
Constructor Summary
ConstructorsConstructorDescriptionPSKTlsClient
(TlsCrypto crypto, byte[] identity, byte[] psk) PSKTlsClient
(TlsCrypto crypto, TlsPSKIdentity pskIdentity) -
Method Summary
Modifier and TypeMethodDescriptionprotected int[]
protected ProtocolVersion[]
Get theProtocolVersion
values that are supported by this peer.Methods inherited from class org.bouncycastle.tls.AbstractTlsClient
allowUnexpectedServerExtension, checkForUnexpectedServerExtension, getAllowedClientCertificateTypes, getAllowedServerCertificateTypes, getCertificateAuthorities, getCertificateStatusRequest, getCipherSuites, getClientExtensions, getClientSupplementalData, getDHGroupVerifier, getEarlyKeyShareGroups, getExternalPSKs, getMultiCertStatusRequest, getNamedGroupRoles, getNewConnectionID, getProtocolNames, getProtocolVersions, getSessionToResume, getSNIServerNames, getSRPConfigVerifier, getSRPIdentity, getSupportedGroups, getSupportedSignatureAlgorithms, getSupportedSignatureAlgorithmsCert, getTrustedCAIndication, init, isFallback, notifyHandshakeBeginning, notifyNewSessionTicket, notifySelectedCipherSuite, notifySelectedPSK, notifyServerVersion, notifySessionID, notifySessionToResume, processServerExtensions, processServerSupplementalData, shouldUseCompatibilityMode
Methods inherited from class org.bouncycastle.tls.AbstractTlsPeer
allowLegacyResumption, cancel, getCrypto, getHandshakeResendTimeMillis, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyConnectionClosed, notifyHandshakeComplete, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTime
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bouncycastle.tls.TlsPeer
allowLegacyResumption, cancel, getCrypto, getHandshakeResendTimeMillis, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyConnectionClosed, notifyHandshakeComplete, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTime
-
Field Details
-
pskIdentity
-
-
Constructor Details
-
PSKTlsClient
-
PSKTlsClient
-
-
Method Details
-
getSupportedVersions
Description copied from class:AbstractTlsPeer
Get theProtocolVersion
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.- Overrides:
getSupportedVersions
in classAbstractTlsPeer
- Returns:
- an array of supported
ProtocolVersion
values.
-
getSupportedCipherSuites
protected int[] getSupportedCipherSuites()- Specified by:
getSupportedCipherSuites
in classAbstractTlsPeer
-
getPSKIdentity
- Specified by:
getPSKIdentity
in interfaceTlsClient
- Overrides:
getPSKIdentity
in classAbstractTlsClient
-
getAuthentication
- Throws:
IOException
-