public class MockDTLSClient extends DefaultTlsClient
| Modifier and Type | Field and Description |
|---|---|
protected TlsSession |
session |
cipherFactory, clientECPointFormats, context, namedCurves, selectedCipherSuite, selectedCompressionMethod, serverECPointFormats, supportedSignatureAlgorithms| Constructor and Description |
|---|
MockDTLSClient(TlsSession session) |
| Modifier and Type | Method and Description |
|---|---|
TlsAuthentication |
getAuthentication() |
java.util.Hashtable |
getClientExtensions() |
ProtocolVersion |
getClientVersion() |
ProtocolVersion |
getMinimumVersion() |
TlsSession |
getSessionToResume()
Return the session this client wants to resume, if any.
|
void |
notifyAlertRaised(short alertLevel,
short alertDescription,
java.lang.String message,
java.lang.Throwable cause)
This method will be called when an alert is raised by the protocol.
|
void |
notifyAlertReceived(short alertLevel,
short alertDescription)
This method will be called when an alert is received from the remote peer.
|
void |
notifyHandshakeComplete()
Notifies the peer that the handshake has been successfully completed.
|
void |
notifyServerVersion(ProtocolVersion serverVersion) |
createDHEKeyExchange, createDHKeyExchange, createECDHEKeyExchange, createECDHKeyExchange, createRSAKeyExchange, getCipher, getCipherSuites, getKeyExchangeallowUnexpectedServerExtension, checkForUnexpectedServerExtension, getClientHelloRecordLayerVersion, getClientSupplementalData, getCompression, getCompressionMethods, init, isFallback, notifyNewSessionTicket, notifySelectedCipherSuite, notifySelectedCompressionMethod, notifySessionID, processServerExtensions, processServerSupplementalDatanotifySecureRenegotiation, shouldUseGMTUnixTimeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnotifySecureRenegotiation, shouldUseGMTUnixTimeprotected TlsSession session
public MockDTLSClient(TlsSession session)
public TlsSession getSessionToResume()
TlsClientgetSessionToResume in interface TlsClientgetSessionToResume in class AbstractTlsClientTlsSession representing the resumable session to be used for this
connection, or null to use a new session.SessionParameters.getPeerCertificate()public void notifyAlertRaised(short alertLevel,
short alertDescription,
java.lang.String message,
java.lang.Throwable cause)
TlsPeernotifyAlertRaised in interface TlsPeernotifyAlertRaised in class AbstractTlsPeeralertLevel - AlertLevelalertDescription - AlertDescriptionmessage - A human-readable message explaining what caused this alert. May be null.cause - The Throwable that caused this alert to be raised. May be null.public void notifyAlertReceived(short alertLevel,
short alertDescription)
TlsPeernotifyAlertReceived in interface TlsPeernotifyAlertReceived in class AbstractTlsPeeralertLevel - AlertLevelalertDescription - AlertDescriptionpublic ProtocolVersion getClientVersion()
getClientVersion in interface TlsClientgetClientVersion in class AbstractTlsClientpublic ProtocolVersion getMinimumVersion()
getMinimumVersion in class AbstractTlsClientpublic java.util.Hashtable getClientExtensions()
throws java.io.IOException
getClientExtensions in interface TlsClientgetClientExtensions in class AbstractTlsClientjava.io.IOExceptionpublic void notifyServerVersion(ProtocolVersion serverVersion) throws java.io.IOException
notifyServerVersion in interface TlsClientnotifyServerVersion in class AbstractTlsClientjava.io.IOExceptionpublic TlsAuthentication getAuthentication() throws java.io.IOException
java.io.IOExceptionpublic void notifyHandshakeComplete()
throws java.io.IOException
TlsPeernotifyHandshakeComplete in interface TlsPeernotifyHandshakeComplete in class AbstractTlsPeerjava.io.IOException