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.
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.
true if the authentication passed and the connection can be established.