com.cafesoft.cams.session.access
Interface SessionAccessResponse

All Known Subinterfaces:
InternalSessionAccessResponse

public interface SessionAccessResponse

Defines the response to an a SessionAccessRequest, which request information about a Cams authentication Session.

Since:
5/3/2002
See Also:
SessionAccessRequest

Field Summary
static int RC_GENERAL_SERVER_ERROR
          Reason Code: General Server Error, probably due to a misconfiguration.
static int RC_GENERAL_TRANSPORT_ERROR
          Reason Code: General Transport Error
static int RC_INVALID_REMOTE_IP_ADDRESS
          Reason Code: The remote host IP address is not valid.
static int RC_INVALID_SESSION_ID
          Reason Code: An invalid session identifier was specified.
static int RC_NOT_APPLICABLE
          Reason Code: Not Applicable (because access is granted)
static int RC_POISONED_SESSION
          Reason Code: The session has been poisoned.
static int RC_SESSION_DOES_NOT_EXIST
          Reason Code: The Session Id does not exist in the SecurityDomain's SessionManagerService
static int RC_UNAUTHORIZED_AGENT
          Reason Code: The agent making the session access request is not authorized.
static int RC_UNKNOWN_SECURITY_DOMAIN
          Reason Code: An unknown security domain was referenced.
static int SC_FAILED
          Status Code indicating that access is denied.
static int SC_PENDING
          Status Code indicating that access check is in progress.
static int SC_SUCCESS
          Status Code indicating that access is granted.
 
Method Summary
 String getMessage()
          Get the message.
 int getReason()
          Get the Reason code.
 String getSecurityDomainName()
          Returns the security domain Name.
 RemoteSession getSession()
          Get the Session associated with this SessionAccessResponse
 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 access check is in progress.

See Also:
Constant Field Values

SC_SUCCESS

public static final int SC_SUCCESS
Status Code indicating that access is granted.

See Also:
Constant Field Values

SC_FAILED

public static final int SC_FAILED
Status Code indicating that access is denied.

See Also:
Constant Field Values

RC_NOT_APPLICABLE

public static final int RC_NOT_APPLICABLE
Reason Code: Not Applicable (because access is granted)

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_UNAUTHORIZED_AGENT

public static final int RC_UNAUTHORIZED_AGENT
Reason Code: The agent making the session 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_INVALID_SESSION_ID

public static final int RC_INVALID_SESSION_ID
Reason Code: An invalid session identifier was specified. The session ID may have been tampered or the format may be unrecognized.

See Also:
Constant Field Values

RC_POISONED_SESSION

public static final int RC_POISONED_SESSION
Reason Code: The session has been poisoned.

See Also:
Constant Field Values

RC_SESSION_DOES_NOT_EXIST

public static final int RC_SESSION_DOES_NOT_EXIST
Reason Code: The Session Id does not exist in the SecurityDomain's SessionManagerService

See Also:
Constant Field Values

RC_GENERAL_TRANSPORT_ERROR

public static final int RC_GENERAL_TRANSPORT_ERROR
Reason Code: General Transport 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 session access failed, or null if no message is available.

getSession

public RemoteSession getSession()
Get the Session associated with this SessionAccessResponse

Returns:
the Session contained by the SessionAccessResponse

getSecurityDomainName

public String getSecurityDomainName()
Returns the security domain Name.

Returns:
the security domain Name

log

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

Parameters:
logger - logs data


Generated on 10:40:31 AM September 10, 2003, © 1996-2003 Cafésoft LLC. All rights reserved.