Class PSKTlsClient
java.lang.Object
org.bouncycastle.tls.AbstractTlsPeer
org.bouncycastle.tls.AbstractTlsClient
org.bouncycastle.tls.PSKTlsClient
-
Field Summary
FieldsFields inherited from class 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 theProtocolVersionvalues that are supported by this peer.Methods inherited from class 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, shouldUseCompatibilityModeMethods inherited from class AbstractTlsPeer
allowLegacyResumption, cancel, getCrypto, getHandshakeResendTimeMillis, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyConnectionClosed, notifyHandshakeComplete, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTimeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:AbstractTlsPeerGet theProtocolVersionvalues 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:
getSupportedVersionsin classAbstractTlsPeer- Returns:
- an array of supported
ProtocolVersionvalues.
-
getSupportedCipherSuites
protected int[] getSupportedCipherSuites()- Specified by:
getSupportedCipherSuitesin classAbstractTlsPeer
-
getPSKIdentity
- Specified by:
getPSKIdentityin interfaceTlsClient- Overrides:
getPSKIdentityin classAbstractTlsClient
-
getAuthentication
- Throws:
IOException
-