public final class SimpleAuthenticator extends Object implements Authenticator
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleAuthenticator.Builder
Builder to create instances of SimpleAuthenticator
|
| 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 and will be followed up by multiple calls to
Authenticator.onConnectedSession(SessionProxy, long) once the response channel is connected. |
public void onConnectRequest(long sessionId,
byte[] encodedCredentials,
long nowMs)
Authenticator.onConnectedSession(SessionProxy, long) once the response channel is connected.onConnectRequest in interface AuthenticatorsessionId - 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.public void onChallengeResponse(long sessionId,
byte[] encodedCredentials,
long nowMs)
onChallengeResponse in interface AuthenticatorsessionId - 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.public void onConnectedSession(SessionProxy sessionProxy, long nowMs)
onConnectedSession in interface AuthenticatorsessionProxy - to use to update authentication status. Proxy is only valid for the duration of the call.nowMs - current epoch time in milliseconds.SessionProxypublic 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.
onChallengedSession in interface AuthenticatorsessionProxy - to use to update authentication status. Proxy is only valid for the duration of the call.nowMs - current epoch time in milliseconds.SessionProxyCopyright © 2014-2023 Real Logic Limited. All Rights Reserved.