public class ObResourceRequest extends java.lang.Object implements ObResourceRequestInterface, java.lang.Cloneable
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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 method configured for resource request object for example HTTP
methods like GET, POST.
|
java.util.Hashtable |
getParameters()
Deprecated.
Returns query parameters used to define a resource.
|
java.lang.String |
getResource()
Deprecated.
Returns resource
|
protected ResourceRequest |
getResourceRequest()
Deprecated.
|
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
|
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 nullpublic 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 nullpublic 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.protected ResourceRequest getResourceRequest()
public java.lang.String[][] hashtableToArr(java.util.Hashtable h)
public void finalize()
finalize in interface ObResourceRequestInterfacefinalize in class java.lang.Objectpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
finalize()
to clean up any unused old referencesclone in class java.lang.Objectjava.lang.CloneNotSupportedException