public interface Authenticator
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
authenticate(java.lang.String username_,
java.lang.String currentPassword_)
Called by the AMPS.Client just before the logon command is sent to the server.
|
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 the server responds to a logon attempt 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 - If an error occurs while retrieving or generating the password.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 - If an error occurs while updating the password.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 of the logon.AuthenticationException - If the client-side authentication module detects an error.