public interface TlsPeer
| Modifier and Type | Method and Description |
|---|---|
TlsCipher |
getCipher() |
TlsCompression |
getCompression() |
void |
notifyAlertRaised(short alertLevel,
short alertDescription,
String message,
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 |
notifySecureRenegotiation(boolean secureNegotiation) |
boolean |
requiresExtendedMasterSecret()
This implementation supports RFC 7627 and will always negotiate the extended_master_secret
extension where possible.
|
boolean |
shouldUseGMTUnixTime()
draft-mathewson-no-gmtunixtime-00 2.
|
boolean requiresExtendedMasterSecret()
true if the handshake should be aborted when the peer does not negotiate
the extended_master_secret extension, or false to support legacy
interoperability.boolean shouldUseGMTUnixTime()
true if the current time should be used in the gmt_unix_time field of
Random, or false if gmt_unix_time should contain a cryptographically
random value.void notifySecureRenegotiation(boolean secureNegotiation)
throws IOException
IOExceptionTlsCompression getCompression() throws IOException
IOExceptionTlsCipher getCipher() throws IOException
IOExceptionvoid notifyAlertRaised(short alertLevel,
short alertDescription,
String message,
Throwable cause)
alertLevel - 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.void notifyAlertReceived(short alertLevel,
short alertDescription)
alertLevel - AlertLevelalertDescription - AlertDescriptionvoid notifyHandshakeComplete()
throws IOException
IOExceptionCopyright © 2015–2019 The veraPDF Consortium. All rights reserved.