eneter.messaging.messagingsystems.composites.authenticatedconnection
Interface IAuthenticate


public interface IAuthenticate

Callback method to authenticate the connection. When AuthenticatedDuplexInputChannel receives the handshake response message it performs the authentication of the connection.


Method Summary
 boolean authenticate(java.lang.String channelId, java.lang.String responseReceiverId, java.lang.Object loginMessage, java.lang.Object handshakeMessage, java.lang.Object handshakeResponseMessage)
          Performs the authentication.
 

Method Detail

authenticate

boolean authenticate(java.lang.String channelId,
                     java.lang.String responseReceiverId,
                     java.lang.Object loginMessage,
                     java.lang.Object handshakeMessage,
                     java.lang.Object handshakeResponseMessage)
Performs the authentication. When AuthenticatedDuplexInputChannel receives the handshake response message it performs the authentication of the connection.
If it returns true the connection will be established. If it returns false the connection will be closed.

Parameters:
channelId - service address.
responseReceiverId - unique id representing the connection with the client.
loginMessage - login message that was sent from the client
handshakeMessage - verification message (question) that service sent to the client.
handshakeResponseMessage - client's response to the handshake message.
Returns:
true if the authentication passed and the connection can be established.