abstract fun finalizeHandshake(senderNodeId: Bytes, authHeader: AuthHeader): Unit
(source)
Verifies, that incoming authentication header is valid via decoding authorization response and checking nonce signature. In case if everything is valid, it creates and stores session key