|
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.ObResourceRequest
Deprecated. Implements the ObResourceRequestInterface.
public class ObResourceRequest
ObResourceRequest objects are used by the ObAuthenticationScheme constructors to retrieve information about the resource's authentication scheme and by the isAuthorized() method of the ObUserSession class to determine if a user is authorized to access the resource. In Oracle package, methods getName(), isBasic(), isCertificate() etc. from class AuthenticationScheme throws AccessException in case if Access Server API not initialized or if scheme id is null. And this is affecting on methods from Oblix package. So to retain backward compatibility the calling methods from this class such as getName(), isBasic(), isCertificate() etc. catches the checked exception and throws ObAccessRuntimeException.
| Constructor Summary | |
|---|---|
ObResourceRequest(java.lang.String resType, java.lang.String resName, java.lang.String operation)Deprecated. Constructs ObResourceRequest object with specified resource type, name and operation. |
|
ObResourceRequest(java.lang.String resType, java.lang.String resName, java.lang.String operation, java.util.Hashtable parameters)Deprecated. Constructs ObResourceRequest object with specified resource type, name, operation and parameters name/value pair hashtable. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()Deprecated. Used to clone ObResourceRequest Objects. |
void |
finalize()Deprecated. Internal Use Only. |
java.util.Hashtable |
getAuthorizationParameters()Deprecated. Returns parameters required for authorization of the resource. |
int |
getNumberOfAuthorizationParameters()Deprecated. Returns count of parameters required for authorization of this resource. |
java.lang.String |
getOperation()Deprecated. Returns Http method for a given ObResourceRequest object |
java.util.Hashtable |
getParameters()Deprecated. Returns query parameters used to define a resource. |
java.lang.String |
getResource()Deprecated. Returns resource |
java.lang.String |
getResourceType()Deprecated. Returns resource type |
java.lang.String[][] |
hashtableToArr(java.util.Hashtable h)Deprecated. Internal Use Only |
boolean |
isProtected()Deprecated. Checks if the resource defined by the ObResourceRequest is protected |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObResourceRequest(java.lang.String resType,
java.lang.String resName,
java.lang.String operation)
throws ObAccessException
resType - Resource type, for example http, ejb etc. If null, defaults to httpresName - Resource nameoperation - Operation for the resource object. For example GET, POST , PUT, HEAD, DELETE, TRACE, OPTIONS, CONNECT, OTHER.ObAccessException - In case of errors during object creation or if resName or operation string is null
public ObResourceRequest(java.lang.String resType,
java.lang.String resName,
java.lang.String operation,
java.util.Hashtable parameters)
throws ObAccessException
resType - Resource type, for example http, ejb etc., If null defaults to httpresName - Resource nameoperation - Operation for the resource object. For example GET, POST , PUT, HEAD, DELETE, TRACE, OPTIONS, CONNECT, OTHER.parameters - (Optional) Hashtable of query string parameters in the form of name/value pairs of String type. These parameters will be used by the OAM server in order to determine the policy that protects this resource. This argument is optional if the policies configured does not rely on the query string parameters.ObAccessException - In case of errors during object creation or if resName or operation string is null| Method Detail |
|---|
public boolean isProtected()
throws ObAccessException
ObResourceRequestInterfaceisProtected in interface ObResourceRequestInterfaceObAccessException - In case server could not determine the protected status of the resource or some other errorpublic java.lang.String getResourceType()
ObResourceRequestInterfacegetResourceType in interface ObResourceRequestInterfacepublic java.lang.String getResource()
ObResourceRequestInterfacegetResource in interface ObResourceRequestInterfacepublic java.lang.String getOperation()
ObResourceRequestInterfacegetOperation in interface ObResourceRequestInterfacepublic java.util.Hashtable getParameters()
ObResourceRequestInterfacegetParameters in interface ObResourceRequestInterfacepublic java.util.Hashtable getAuthorizationParameters()
getAuthorizationParameters in interface ObResourceRequestInterfaceObAccessRuntimeException - In case if resource request object is not initialized.public int getNumberOfAuthorizationParameters()
ObAccessRuntimeException - In case if resource request object is not initialized.public java.lang.String[][] hashtableToArr(java.util.Hashtable h)
public void finalize()
finalize in interface ObResourceRequestInterfacefinalize in class java.lang.Object
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
finalize() to clean up any unused old referencesclone 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 | |||||||||