ice.ssl
Interface CertificateListener

All Superinterfaces:
EventListener

public interface CertificateListener
extends EventListener

The listener interface for receiving certificate events. The class that is interested in processing a certificat event implements this interface, and the object created with that class must be registered, using SSLSocket's setBlockingCertificateListener() static method. When the certificate event occurs, that object's certificateReceived() method is invoked.

Since:
ICEsecure 1.1
Author:
Jerome Bugnet
See Also:
CertificateEvent, SSLSocket.setBlockingCertificateListener(CertificateListener)

Method Summary
 boolean certificateReceived(CertificateEvent ev)
          Method invoked when a certificate is received.
 

Method Detail

certificateReceived

public boolean certificateReceived(CertificateEvent ev)
Method invoked when a certificate is received. This method must decide if the certificate is to be accepted or not, and return the result. It is blocking the SSL transaction so if the certificate is refused by the user, no data will be transmited.

Returns:
false if the certificate is not accepted, true otherwise.