public class PSKTlsClient extends AbstractTlsClient
Modifier and Type | Field and Description |
---|---|
protected TlsPSKIdentity |
pskIdentity |
cipherSuites, context, protocolVersions, supportedGroups, supportedSignatureAlgorithms, supportedSignatureAlgorithmsCert
Constructor and Description |
---|
PSKTlsClient(TlsCrypto crypto,
byte[] identity,
byte[] psk) |
PSKTlsClient(TlsCrypto crypto,
TlsPSKIdentity pskIdentity) |
Modifier and Type | Method and Description |
---|---|
TlsAuthentication |
getAuthentication() |
TlsPSKIdentity |
getPSKIdentity() |
protected int[] |
getSupportedCipherSuites() |
protected ProtocolVersion[] |
getSupportedVersions()
Get the
ProtocolVersion values that are supported by this peer. |
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
allowLegacyResumption, cancel, getCrypto, getHandshakeResendTimeMillis, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyConnectionClosed, notifyHandshakeComplete, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allowLegacyResumption, cancel, getCrypto, getHandshakeResendTimeMillis, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getMaxCertificateChainLength, getMaxHandshakeMessageSize, getPskKeyExchangeModes, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyConnectionClosed, notifyHandshakeComplete, notifySecureRenegotiation, requiresCloseNotify, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTime
protected TlsPSKIdentity pskIdentity
public PSKTlsClient(TlsCrypto crypto, byte[] identity, byte[] psk)
public PSKTlsClient(TlsCrypto crypto, TlsPSKIdentity pskIdentity)
protected ProtocolVersion[] getSupportedVersions()
AbstractTlsPeer
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.getSupportedVersions
in class AbstractTlsPeer
ProtocolVersion
values.protected int[] getSupportedCipherSuites()
getSupportedCipherSuites
in class AbstractTlsPeer
public TlsPSKIdentity getPSKIdentity()
getPSKIdentity
in interface TlsClient
getPSKIdentity
in class AbstractTlsClient
public TlsAuthentication getAuthentication() throws java.io.IOException
java.io.IOException