public final class SampleAuthenticator extends Object implements Authenticator
Authenticator to demonstrate usage based on some hardcoded credentials.| Constructor and Description |
|---|
SampleAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encodedPrincipal()
Byte array encoded representation of the sample principal.
|
void |
onChallengedSession(SessionProxy sessionProxy,
long nowMs)
The client has been challenged and is awaiting a response.
|
void |
onChallengeResponse(long sessionId,
byte[] encodedCredentials,
long nowMs)
Client has returned a response to a challenge.
|
void |
onConnectedSession(SessionProxy sessionProxy,
long nowMs)
Client session is now connected so a response can be sent.
|
void |
onConnectRequest(long sessionId,
byte[] encodedCredentials,
long nowMs)
Client is attempting to connect.
|
public static final String PRINCIPAL
public byte[] encodedPrincipal()
public void onConnectRequest(long sessionId,
byte[] encodedCredentials,
long nowMs)
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 inform client of status.nowMs - current epoch time in milliseconds.SessionProxypublic void onChallengedSession(SessionProxy sessionProxy, long nowMs)
onChallengedSession in interface AuthenticatorsessionProxy - to use to inform client of status.nowMs - current epoch time in milliseconds.SessionProxyCopyright © 2014-2023 Real Logic Limited. All Rights Reserved.