|
Oracle Access Manager Access SDK Java API Reference 11g Release 1 (11.1.1) E22472-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
com.oblix.access.ObUserSession
Deprecated. Implements the ObUserSession Interface
public class ObUserSession
| Field Summary | |
|---|---|
static int |
AWAITINGLOGINDeprecated. |
static int |
ERR_AUTHN_PLUGIN_DENIEDDeprecated. |
static int |
ERR_DENYDeprecated. |
static int |
ERR_IDLE_TIMEOUTDeprecated. |
static int |
ERR_INCONCLUSIVEDeprecated. |
static int |
ERR_INSUFFICIENT_LEVELDeprecated. |
static int |
ERR_INVALID_CERTIFICATEDeprecated. |
static int |
ERR_NEED_MORE_DATADeprecated. |
static int |
ERR_NO_USERDeprecated. |
static int |
ERR_NOT_LOGGED_INDeprecated. |
static int |
ERR_PASSWORD_CHANGE_ON_RESETDeprecated. |
static int |
ERR_PASSWORD_EXPIREDDeprecated. |
static int |
ERR_SESSION_TIMEOUTDeprecated. |
static int |
ERR_UNKNOWNDeprecated. |
static int |
ERR_USER_LOCKED_OUTDeprecated. |
static int |
ERR_USER_REVOKEDDeprecated. |
static int |
ERR_WRONG_PASSWORDDeprecated. |
static int |
EXPIREDDeprecated. |
static int |
LOGGEDINDeprecated. |
static int |
LOGGEDOUTDeprecated. |
static int |
LOGINFAILEDDeprecated. |
static int |
OKDeprecated. |
| Constructor Summary | |
|---|---|
ObUserSession()Deprecated. Default Constructor for ObUserSesion Object |
|
ObUserSession(ObResourceRequest res, java.util.Hashtable credentials)Deprecated. Constructor for ObUserSession object for the specified resource and credentials |
|
ObUserSession(ObResourceRequest res, java.util.Hashtable credentials, java.lang.String location)Deprecated. Constructor for ObUserSession object for the specified resource and credentials |
|
ObUserSession(java.lang.String sessionToken)Deprecated. Constructor for ObUserSession object for the specified session token |
|
ObUserSession(java.lang.String sessionToken, boolean lazyload)Deprecated. Constructor for ObUserSession object for the specified session token with lazy load flag |
|
| Method Summary | |
|---|---|
void |
clearActions()Deprecated. Clears all information pertaining to actions that was retrieved as part of previous authentication or authorization operation. |
java.lang.Object |
clone()Deprecated. Used to clone ObUserSession Objects. |
void |
finalize()Deprecated. Cleans up native ObUserSession objects. |
java.lang.String |
getAction(java.lang.String actionType, java.lang.String name)Deprecated. Returns action corresponding to the action name and type specified. |
java.util.Hashtable |
getActions(java.lang.String actionType)Deprecated. Returns hashtable containing actions in the form of name/value pairs of String type for specified actionType. |
java.lang.String[] |
getActionTypes()Deprecated. Returns string array of all the action types returned by the OAM server as part of authentication or authorization. |
int |
getError()Deprecated. Returns the error number from the most recent authentication or authorization failure Error |
java.lang.String |
getErrorMessage()Deprecated. Returns the detailed error message for the authentication or authorization failure |
int |
getLastUseTime()Deprecated. Returns the time in seconds from Jan 1 1970 till the most recent user request was authorized. |
int |
getLevel()Deprecated. Returns the level of authentication scheme used to authenticate the user |
java.lang.String |
getLocation()Deprecated. Returns the IP address of the user's client |
int |
getNumberOfActions(java.lang.String actionType)Deprecated. Returns number of actions of the specified type that are returned by OAM server as part of authentication or authorization. |
java.lang.String |
getSessionToken()Deprecated. Returns the serialized representation of user session |
int |
getStartTime()Deprecated. Returns time in seconds from Jan 1 1970 till authenticated user session was started. |
int |
getStatus()Deprecated. Provides integer value representing the current status of the session. |
java.lang.String |
getUserIdentity()Deprecated. Returns the DN of the user's profile entry in the user directory. |
boolean |
isAuthorized(ObResourceRequest res)Deprecated. Checks if the user is authorized to request an operation for a particular resource |
boolean |
isAuthorized(ObResourceRequest res, java.util.Hashtable parameters)Deprecated. Checks if the user is authorized to request an operation for a particular resource |
void |
logoff()Deprecated. Logs off the authenticated user and terminates the session |
void |
setLocation(java.lang.String location)Deprecated. Sets the IP address of the user's client |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int AWAITINGLOGIN
public static final int LOGGEDIN
public static final int LOGGEDOUT
public static final int LOGINFAILED
public static final int EXPIRED
public static final int OK
public static final int ERR_UNKNOWN
public static final int ERR_NO_USER
public static final int ERR_USER_REVOKED
public static final int ERR_WRONG_PASSWORD
public static final int ERR_INVALID_CERTIFICATE
public static final int ERR_AUTHN_PLUGIN_DENIED
public static final int ERR_INSUFFICIENT_LEVEL
public static final int ERR_NOT_LOGGED_IN
public static final int ERR_SESSION_TIMEOUT
public static final int ERR_IDLE_TIMEOUT
public static final int ERR_DENY
public static final int ERR_PASSWORD_EXPIRED
public static final int ERR_PASSWORD_CHANGE_ON_RESET
public static final int ERR_USER_LOCKED_OUT
public static final int ERR_NEED_MORE_DATA
public static final int ERR_INCONCLUSIVE
| Constructor Detail |
|---|
public ObUserSession()
throws ObAccessException
ObAccessException - in case of failure to create the object
public ObUserSession(java.lang.String sessionToken)
throws ObAccessException
sessionToken - serailized user session object representationObAccessException - in case of failure to create the object or if session token is null
public ObUserSession(ObResourceRequest res,
java.util.Hashtable credentials,
java.lang.String location)
throws ObAccessException
res - resource object for which user is being authenticatedcredentials - Hashtable containing the key/value pairs of String type.
ObAuthenticationSchemeObAuthenticationSchemeObAuthenticationScheme. The value for this certificate key should be Base64 Encoded string which represent a valid X.509 certificate.location - used if the client location needs to be specified. Valid DNS name or IP address can be used to specify the locationObAccessException - in case of failure to create the object, or in case resource object is null
public ObUserSession(ObResourceRequest res,
java.util.Hashtable credentials)
throws ObAccessException
res - resource object for which user is being authenticatedcredentials - Hashtable containing the key/value pairs of String type.
ObAuthenticationSchemeObAuthenticationSchemeObAuthenticationScheme. The value for this certificate key should be Base64 Encoded string which represent a valid X.509 certificate.ObAccessException - in case of failure to create the object or if resource object is invalid
public ObUserSession(java.lang.String sessionToken,
boolean lazyload)
throws ObAccessException
sessionToken - serailized user session object representation, bool flag to indicte lazy load of sessioninfoObAccessException - in case of failure to create the object or if session token is null| Method Detail |
|---|
public java.lang.String getUserIdentity()
throws ObAccessException
ObUserSessionInterfacegetUserIdentity in interface ObUserSessionInterfaceObAccessException - If error occurs during operation
public int getLevel()
throws ObAccessException
ObUserSessionInterfacegetLevel in interface ObUserSessionInterfaceObAccessException - If error occurs during operation
public java.lang.String getLocation()
throws ObAccessException
ObUserSessionInterfacegetLocation in interface ObUserSessionInterfaceObAccessException - If error occurs during operationpublic void setLocation(java.lang.String location)
ObUserSessionInterfacesetLocation in interface ObUserSessionInterfaceObAccessRuntimeException - in case if fails to validate Ip address
public int getStartTime()
throws ObAccessException
ObUserSessionInterfacegetStartTime in interface ObUserSessionInterfaceObAccessException - If failed to retrieve session information
public int getLastUseTime()
throws ObAccessException
ObUserSessionInterfacegetLastUseTime in interface ObUserSessionInterfaceObAccessException - In case if operation fails.public int getNumberOfActions(java.lang.String actionType)
ObUserSessionInterfaceEach resource type defines the following set of action types: cookie, headervar and redirecturl for http resources.
getNumberOfActions in interface ObUserSessionInterfaceactionType - type of action to be retrieved. If this is left NULL, the default is headervar.public java.util.Hashtable getActions(java.lang.String actionType)
ObUserSessionInterfaceEach resource type defines the following set of action types: cookie, headervar and redirecturl for http resources. The redirecturl action type indicates the url where the user should be redirected to for successful or failed authentication or authorization. To retrieve the redirection url set action type to "redirecturl".
getActions in interface ObUserSessionInterfaceactionType - type of action to be retrieved. If this is left NULL, the default is "headervar".
public java.lang.String getAction(java.lang.String actionType,
java.lang.String name)
ObUserSessionInterfaceEach resource type defines the following set of action types: cookie, headervar and redirecturl for http resources. The redirecturl action type indicates the url where the user should be redirected to for successful or failed authentication or authorization. To retrieve the redirection url set action type to "redirecturl" and name to "HTTP_REDIRECT".
getAction in interface ObUserSessionInterfaceactionType - type of action to be retrieved. If this is left NULL, the default is headervar.name - name of the action to be retrieved.public java.lang.String[] getActionTypes()
ObUserSessionInterfaceEach resource type defines the following set of action types: cookie, headervar and redirecturl for http resources.
getActionTypes in interface ObUserSessionInterfacepublic void clearActions()
ObUserSessionInterfaceclearActions in interface ObUserSessionInterfacepublic int getStatus()
ObUserSessionInterfacegetStatus in interface ObUserSessionInterfaceObAccessRuntimeException - in case if it fails to create user sessionpublic int getError()
ObUserSessionInterfaceErrorgetError in interface ObUserSessionInterfacepublic java.lang.String getErrorMessage()
ObUserSessionInterfacegetErrorMessage in interface ObUserSessionInterface
public boolean isAuthorized(ObResourceRequest res)
throws ObAccessException
ObUserSessionInterfaceisAuthorized in interface ObUserSessionInterfaceres - resource object being checked for authorizationObAccessException - In case a failure occurs during the operation
public boolean isAuthorized(ObResourceRequest res,
java.util.Hashtable parameters)
throws ObAccessException
ObUserSessionInterfaceisAuthorized in interface ObUserSessionInterfaceres - resource object being checked for authorizationparameters - Hashtable of name-value pairs of String type required by These parameters are required if the authorization policy requires additional information to perform authorization. The parameters that are required for authorization can be obtained by using getAuthorizationParameters method of ObResourceRequestObAccessException - In case a failure occurs during the operationpublic java.lang.String getSessionToken()
ObUserSessionInterfacegetSessionToken in interface ObUserSessionInterfaceObAccessRuntimeException - in case if it fails to generate the session token.public void logoff()
ObUserSessionInterfacelogoff in interface ObUserSessionInterfaceObAccessRuntimeException - in case if it fails to perform logout for authenticated user.public void finalize()
ObUserSessionInterfacefinalize in interface ObUserSessionInterfacefinalize in class java.lang.Object
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
Oracle Access Manager Access SDK Java API Reference 11g Release 1 (11.1.1) E22472-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||