com.cafesoft.cams.auth
Interface AuthResponse

All Known Subinterfaces:
InternalAuthResponse

public interface AuthResponse

AuthResponse defines the interface to an Authentication Response corresponding to an AuthRequest to a Cafesoft SecurityDomain's Authentication Engine.


Field Summary
static int RC_CALLBACK_HANDLER_ERROR
          Reason Code : The CallbackHandler had an error
static int RC_EXPIRED_ACCOUNT
          Reason Code : The account specified by the user has expired.
static int RC_EXPIRED_CREDENTIAL
          Reason Code : The credential specified by the user has expired.
static int RC_GENERAL_SERVER_ERROR
          Reason Code: General Server Error, probably due to a misconfiguration.
static int RC_INVALID_REMOTE_HOST_NAME
          Reason Code: The remote host name is not valid.
static int RC_INVALID_REMOTE_IP_ADDRESS
          Reason Code: The remote host IP address is not valid.
static int RC_LOGIN_ERROR
          Reason Code : An unrecoverable error occurred during login.
static int RC_LOGIN_FAILED
          Reason Code : The attempted login failed due to incomplete or invalid credentials
static int RC_NOT_APPLICABLE
          Reason Code: Not Applicable (because authentication is pending)
static int RC_UNAUTHORIZED_AGENT
          Reason Code: The agent making the access request is not authorized.
static int RC_UNKNOWN_LOGIN_CONFIG
          Reason Code: An unknown login configuration was referenced.
static int RC_UNKNOWN_SECURITY_DOMAIN
          Reason Code: An unknown security domain was referenced.
static int SC_FAILED
          Status Code indicating that authentication failed.
static int SC_PENDING
          Status Code indicating that authentication is in progress.
static int SC_SUCCESS
          Status Code indicating that authentication succeeded.
 
Method Summary
 Map getLoginParameters()
          Get the login parameters if any exist.
 String getMessage()
          Get the message.
 int getReason()
          Get the Reason code.
 SessionId getSessionId()
          Get the Session ID.
 int getStatus()
          Get the status code.
 void log(Logger logger)
          Logs the data contained in this response to the specified logger.
 

Field Detail

SC_PENDING

public static final int SC_PENDING
Status Code indicating that authentication is in progress.

See Also:
Constant Field Values

SC_SUCCESS

public static final int SC_SUCCESS
Status Code indicating that authentication succeeded.

See Also:
Constant Field Values

SC_FAILED

public static final int SC_FAILED
Status Code indicating that authentication failed.

See Also:
Constant Field Values

RC_NOT_APPLICABLE

public static final int RC_NOT_APPLICABLE
Reason Code: Not Applicable (because authentication is pending)

See Also:
Constant Field Values

RC_GENERAL_SERVER_ERROR

public static final int RC_GENERAL_SERVER_ERROR
Reason Code: General Server Error, probably due to a misconfiguration.

See Also:
Constant Field Values

RC_INVALID_REMOTE_IP_ADDRESS

public static final int RC_INVALID_REMOTE_IP_ADDRESS
Reason Code: The remote host IP address is not valid.

See Also:
Constant Field Values

RC_INVALID_REMOTE_HOST_NAME

public static final int RC_INVALID_REMOTE_HOST_NAME
Reason Code: The remote host name is not valid.

See Also:
Constant Field Values

RC_UNAUTHORIZED_AGENT

public static final int RC_UNAUTHORIZED_AGENT
Reason Code: The agent making the access request is not authorized.

See Also:
Constant Field Values

RC_UNKNOWN_SECURITY_DOMAIN

public static final int RC_UNKNOWN_SECURITY_DOMAIN
Reason Code: An unknown security domain was referenced.

See Also:
Constant Field Values

RC_UNKNOWN_LOGIN_CONFIG

public static final int RC_UNKNOWN_LOGIN_CONFIG
Reason Code: An unknown login configuration was referenced.

See Also:
Constant Field Values

RC_LOGIN_FAILED

public static final int RC_LOGIN_FAILED
Reason Code : The attempted login failed due to incomplete or invalid credentials

See Also:
Constant Field Values

RC_LOGIN_ERROR

public static final int RC_LOGIN_ERROR
Reason Code : An unrecoverable error occurred during login.

See Also:
Constant Field Values

RC_EXPIRED_ACCOUNT

public static final int RC_EXPIRED_ACCOUNT
Reason Code : The account specified by the user has expired.

Since:
1.6
See Also:
Constant Field Values

RC_EXPIRED_CREDENTIAL

public static final int RC_EXPIRED_CREDENTIAL
Reason Code : The credential specified by the user has expired.

Since:
1.6
See Also:
Constant Field Values

RC_CALLBACK_HANDLER_ERROR

public static final int RC_CALLBACK_HANDLER_ERROR
Reason Code : The CallbackHandler had an error

See Also:
Constant Field Values
Method Detail

getStatus

public int getStatus()
Get the status code.

Returns:
the status code.

getReason

public int getReason()
Get the Reason code.

Returns:
the reason code.

getMessage

public String getMessage()
Get the message.

Returns:
a textual message, usually used to convey error information if access is denied, or null if no message is available.

getSessionId

public SessionId getSessionId()
Get the Session ID. TBD - Change name to Id

Returns:
the Session ID (if authentication was successful).

getLoginParameters

public Map getLoginParameters()
Get the login parameters if any exist.

Returns:
a Map of login parameters, or null if a Map does not exist

log

public void log(Logger logger)
Logs the data contained in this response to the specified logger.

Parameters:
logger - logs data


Generated on 8:41:50 AM June 06, 2005, © 1996-2005 Cafésoft LLC. All rights reserved.