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, getCertificateStatusRequest, getCipherSuites, getClientExtensions, getClientSupplementalData, getDHGroupVerifier, getEarlyKeyShareGroups, getNamedGroupRoles, getProtocolNames, getProtocolVersions, getSessionToResume, getSNIServerNames, getSRPConfigVerifier, getSRPIdentity, getSupportedGroups, getSupportedSignatureAlgorithms, getSupportedSignatureAlgorithmsCert, init, isFallback, notifyHandshakeBeginning, notifyNewSessionTicket, notifySelectedCipherSuite, notifyServerVersion, notifySessionID, processServerExtensions, processServerSupplementalDataallowLegacyResumption, cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyHandshakeComplete, notifySecureRenegotiation, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTimeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallowLegacyResumption, cancel, getCrypto, getHandshakeTimeoutMillis, getHeartbeat, getHeartbeatPolicy, getKeyExchangeFactory, getRenegotiationPolicy, notifyAlertRaised, notifyAlertReceived, notifyCloseHandle, notifyHandshakeComplete, notifySecureRenegotiation, requiresExtendedMasterSecret, shouldCheckSigAlgOfPeerCerts, shouldUseExtendedMasterSecret, shouldUseExtendedPadding, shouldUseGMTUnixTimeprotected TlsPSKIdentity pskIdentity
public PSKTlsClient(TlsCrypto crypto, byte[] identity, byte[] psk)
public PSKTlsClient(TlsCrypto crypto, TlsPSKIdentity pskIdentity)
protected int[] getSupportedCipherSuites()
getSupportedCipherSuites in class AbstractTlsPeerprotected ProtocolVersion[] getSupportedVersions()
AbstractTlsPeerProtocolVersion 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 AbstractTlsPeerProtocolVersion values.public TlsPSKIdentity getPSKIdentity()
getPSKIdentity in interface TlsClientgetPSKIdentity in class AbstractTlsClientpublic TlsAuthentication getAuthentication() throws java.io.IOException
java.io.IOException