com.sun.im.service
Interface SecurityListener

All Superinterfaces:
CollaborationSessionListener, SecureSessionListener

public interface SecurityListener
extends SecureSessionListener

Author:
mm132998

Method Summary
 boolean continueInClear()
          When api determines that the communication with server will be in cleartext it invokes this method.
 void securityHandshakeComplete()
          called by API after the security nego is complete.
 boolean useTLS()
          Called by the API implementation after it detects that TLS is available and optional.
 
Methods inherited from interface com.sun.im.service.SecureSessionListener
onX509Certificate
 
Methods inherited from interface com.sun.im.service.CollaborationSessionListener
onError
 

Method Detail

continueInClear

public boolean continueInClear()
When api determines that the communication with server will be in cleartext it invokes this method.

Returns:
true to continue, false to abort the connection.

securityHandshakeComplete

public void securityHandshakeComplete()
called by API after the security nego is complete. this is only a notification. If tls handshake fails, CollaborationSessionListener.onError is called.


useTLS

public boolean useTLS()
Called by the API implementation after it detects that TLS is available and optional. Unless there is a specific reason not to use TLS, it is highly recommended to return true. This method is not called if TLS is required by the server

Returns:
whether to use TLS.