org.bouncycastle.crypto.tls
Interface TlsPeer
- All Known Subinterfaces:
- TlsClient, TlsServer
- All Known Implementing Classes:
- AbstractTlsClient, AbstractTlsPeer, AbstractTlsServer, DefaultTlsClient, DefaultTlsServer, LegacyTlsClient, PSKTlsClient, SRPTlsClient
public interface TlsPeer
Method Summary |
void |
notifyAlertRaised(short alertLevel,
short alertDescription,
java.lang.String message,
java.lang.Exception 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. |
notifyAlertRaised
void notifyAlertRaised(short alertLevel,
short alertDescription,
java.lang.String message,
java.lang.Exception cause)
- This method will be called when an alert is raised by the protocol.
- Parameters:
alertLevel
- AlertLevel
alertDescription
- AlertDescription
message
- A human-readable message explaining what caused this alert. May be null.cause
- The exception that caused this alert to be raised. May be null.
notifyAlertReceived
void notifyAlertReceived(short alertLevel,
short alertDescription)
- This method will be called when an alert is received from the remote peer.
- Parameters:
alertLevel
- AlertLevel
alertDescription
- AlertDescription