class DefaultAuthenticationProvider : AuthenticationProvider
(source)
<init> |
DefaultAuthenticationProvider(keyPair: KeyPair, routingTable: RoutingTable) |
authenticate |
Creates authentication header to initialize handshake process. As a result it creates an authentication header to include to udp message. fun authenticate(handshakeParams: HandshakeInitParameters): AuthHeader |
finalizeHandshake |
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 fun finalizeHandshake(senderNodeId: Bytes, authHeader: AuthHeader): Unit |
findSessionKey |
Provides session key by node identifier fun findSessionKey(nodeId: String): SessionKey? |
setSessionKey |
Persists session key by node identifier fun setSessionKey(nodeId: String, sessionKey: SessionKey): Unit |