public interface Authenticator
Modifier and Type | Method and Description |
---|---|
java.lang.String |
authenticate(java.lang.String username_,
java.lang.String currentPassword_)
Called by AMPS.Client, just before the logon command is sent.
|
void |
completed(java.lang.String username_,
java.lang.String password_,
int reason_)
Called when a logon completes successfully.
|
java.lang.String |
retry(java.lang.String username_,
java.lang.String password_)
Called when a logon "ack" is received with a status of "retry".
|
java.lang.String authenticate(java.lang.String username_, java.lang.String currentPassword_) throws AuthenticationException
username_
- The current value of the username as specified in the URI.currentPassword_
- The current value of the password, as specified in the URI.AuthenticationException
- An error occurred while authenticating.java.lang.String retry(java.lang.String username_, java.lang.String password_) throws AuthenticationException
username_
- The username returned by the server's ACK message.password_
- The password or token returned in the server's ACK message.AuthenticationException
- An error occurred while authenticating.void completed(java.lang.String username_, java.lang.String password_, int reason_) throws AuthenticationException
username_
- The username that successfully logged on to the server.password_
- The password that successfully logged on to the server.reason_
- The reason (a value from Message.Reason) for the successful completion.AuthenticationException
- The client-side authentication module detected an error.