ecologylab.services.authentication.messages
Interface AuthMessages

All Known Subinterfaces:
AuthStates
All Known Implementing Classes:
AuthClientSessionManager, AuthenticationOp, DoubleThreadedAuthNIOServer, Login, LoginStatusResponse, Logout, LogoutStatusResponse, NIOAuthClient, NIODatagramAuthClient, NIODatagramAuthServer

public interface AuthMessages

Interface that contains the list of constant Strings used for Authentication messages. Implement this interface if your class uses Login or Logout.

Author:
Zachary O. Toups (toupsz@cs.tamu.edu)

Field Summary
static java.lang.String LOGIN_FAILED_LOGGEDIN
          Indicates that login failed because the username is already logged in.
static java.lang.String LOGIN_FAILED_NO_IP_SUPPLIED
          Indicates that the login failed because the server did not attach an IP address to the request.
static java.lang.String LOGIN_FAILED_PASSWORD
          Indicates that login failed because either the username was not found, or because the password did not match a username.
static java.lang.String LOGIN_SUCCESSFUL
          Indicates that a LOGIN was successful.
static java.lang.String LOGOUT_FAILED_IP_MISMATCH
          Indicates that the LOGOUT was unsuccessful because the message came from the wrong IP.
static java.lang.String LOGOUT_FAILED_NOT_LOGGEDIN
          Indicates that LOGOUT failed because the given username was never logged in in the first place!
static java.lang.String LOGOUT_SUCCESSFUL
          Indicates that a LOGOUT was successful.
static java.lang.String REQUEST_FAILED_NOT_AUTHENTICATED
          Indicates that a request failed because no one has logged in yet.
 

Field Detail

LOGIN_SUCCESSFUL

static final java.lang.String LOGIN_SUCCESSFUL
Indicates that a LOGIN was successful.

See Also:
Constant Field Values

LOGIN_FAILED_PASSWORD

static final java.lang.String LOGIN_FAILED_PASSWORD
Indicates that login failed because either the username was not found, or because the password did not match a username.

See Also:
Constant Field Values

LOGIN_FAILED_LOGGEDIN

static final java.lang.String LOGIN_FAILED_LOGGEDIN
Indicates that login failed because the username is already logged in.

See Also:
Constant Field Values

LOGIN_FAILED_NO_IP_SUPPLIED

static final java.lang.String LOGIN_FAILED_NO_IP_SUPPLIED
Indicates that the login failed because the server did not attach an IP address to the request.

See Also:
Constant Field Values

LOGOUT_SUCCESSFUL

static final java.lang.String LOGOUT_SUCCESSFUL
Indicates that a LOGOUT was successful.

See Also:
Constant Field Values

LOGOUT_FAILED_IP_MISMATCH

static final java.lang.String LOGOUT_FAILED_IP_MISMATCH
Indicates that the LOGOUT was unsuccessful because the message came from the wrong IP.

See Also:
Constant Field Values

LOGOUT_FAILED_NOT_LOGGEDIN

static final java.lang.String LOGOUT_FAILED_NOT_LOGGEDIN
Indicates that LOGOUT failed because the given username was never logged in in the first place!

See Also:
Constant Field Values

REQUEST_FAILED_NOT_AUTHENTICATED

static final java.lang.String REQUEST_FAILED_NOT_AUTHENTICATED
Indicates that a request failed because no one has logged in yet.

See Also:
Constant Field Values