public interface Authenticator
The session-id refers to the authentication session and not the Aeron transport session assigned to a publication.
Modifier and Type | Method and Description |
---|---|
void |
onChallengedSession(SessionProxy sessionProxy,
long nowMs)
Called when a challenged client should be able to accept a response from the authenticator.
|
void |
onChallengeResponse(long sessionId,
byte[] encodedCredentials,
long nowMs)
Called upon reception of a Challenge Response from an unauthenticated client.
|
void |
onConnectedSession(SessionProxy sessionProxy,
long nowMs)
Called when a client's response channel has been connected.
|
void |
onConnectRequest(long sessionId,
byte[] encodedCredentials,
long nowMs)
Called upon reception of a Connect Request.
|
void onConnectRequest(long sessionId, byte[] encodedCredentials, long nowMs)
sessionId
- to identify the client session connecting.encodedCredentials
- from the Connect Request. Will not be null, but may be 0 length.nowMs
- current epoch time in milliseconds.void onChallengeResponse(long sessionId, byte[] encodedCredentials, long nowMs)
sessionId
- to identify the client session connecting.encodedCredentials
- from the Challenge Response. Will not be null, but may be 0 length.nowMs
- current epoch time in milliseconds.void onConnectedSession(SessionProxy sessionProxy, long nowMs)
sessionProxy
- to use to inform client of status.nowMs
- current epoch time in milliseconds.SessionProxy
void onChallengedSession(SessionProxy sessionProxy, long nowMs)
When this is called, there is no assumption that a Challenge Response has been received, plus this method may be called multiple times.
It is up to the concrete class to provide any timeout management.
sessionProxy
- to use to inform client of status.nowMs
- current epoch time in milliseconds.SessionProxy
Copyright © 2014-2018 Real Logic Ltd. All Rights Reserved.