eneter.messaging.messagingsystems.composites.authenticatedconnection
Interface IGetHandshakeResponseMessage


public interface IGetHandshakeResponseMessage

Callback method to get the response message for the handshake message. When AuthenticatedDuplexOutputChannel receives the handshake message it calls this callback to get the response message for the handshake message. The response handshake message is then sent to AuthenticatedDuplexInputChannel which will then authenticate the connection.


Method Summary
 java.lang.Object getHandshakeResponseMessage(java.lang.String channelId, java.lang.String responseReceiverId, java.lang.Object handshakeMessage)
          Returns response for the handshake message.
 

Method Detail

getHandshakeResponseMessage

java.lang.Object getHandshakeResponseMessage(java.lang.String channelId,
                                             java.lang.String responseReceiverId,
                                             java.lang.Object handshakeMessage)
Returns response for the handshake message. Returned response message must be String or byte[]. If it returns null then it means the handshake message is not accepted and the connection will be closed.

Parameters:
channelId - service address
responseReceiverId - unique unique id representing the connection with the client
handshakeMessage - handshake message received from the service
Returns:
handshake response message (must be String or byte[])