Bouncy Castle Cryptography Library 1.49

org.bouncycastle.crypto.tls
Class AbstractTlsPeer

java.lang.Object
  extended by org.bouncycastle.crypto.tls.AbstractTlsPeer
All Implemented Interfaces:
TlsPeer
Direct Known Subclasses:
AbstractTlsClient, AbstractTlsServer

public abstract class AbstractTlsPeer
extends java.lang.Object
implements TlsPeer


Constructor Summary
AbstractTlsPeer()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTlsPeer

public AbstractTlsPeer()
Method Detail

notifyAlertRaised

public void notifyAlertRaised(short alertLevel,
                              short alertDescription,
                              java.lang.String message,
                              java.lang.Exception cause)
Description copied from interface: TlsPeer
This method will be called when an alert is raised by the protocol.

Specified by:
notifyAlertRaised in interface TlsPeer
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

public void notifyAlertReceived(short alertLevel,
                                short alertDescription)
Description copied from interface: TlsPeer
This method will be called when an alert is received from the remote peer.

Specified by:
notifyAlertReceived in interface TlsPeer
Parameters:
alertLevel - AlertLevel
alertDescription - AlertDescription

Bouncy Castle Cryptography Library 1.49