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. |
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 addressresponseReceiverId
- unique unique id representing the connection with the clienthandshakeMessage
- handshake message received from the service
- Returns:
- handshake response message (must be String or byte[])