public final class ResourceRequest
extends java.lang.Object
implements java.lang.Cloneable
Represents a resource request for which access operations are to be performed. ResourceRequest objects are used by the AuthenticationScheme constructors to retrieve information about the resource's authentication scheme and by the isAuthorized() method of the UserSession class to determine if a user is authorized to access the resource.
Modifier and Type | Field and Description |
---|---|
protected AccessClient |
m_accessClient |
protected LocalAccessClient |
m_localAccessClient |
Constructor and Description |
---|
ResourceRequest(AccessClient aClient,
java.lang.String resType,
java.lang.String resource,
java.lang.String operation)
Constructs a ResourceRequest object with specified AccessClient object,
resource type, name and operation.
|
ResourceRequest(AccessClient aClient,
java.lang.String resType,
java.lang.String resource,
java.lang.String operation,
java.util.Hashtable parameters)
Constructs a ResourceRequest object with specified AccessClient object,
resource type, name, operation and parameters name/value pair hashtable.
|
ResourceRequest(LocalAccessClient aClient,
java.lang.String resType,
java.lang.String resource,
java.lang.String operation,
java.util.Hashtable parameters)
Constructs a ResourceRequest object with specified LocalAccessClient object,
resource type, name, operation and parameters name/value pair hashtable.
|
ResourceRequest(java.lang.String resType,
java.lang.String resource,
java.lang.String operation)
Constructs a ResourceRequest object with specified resource type, name
and operation.
|
ResourceRequest(java.lang.String resType,
java.lang.String resource,
java.lang.String operation,
java.util.Hashtable parameters)
Constructs a ResourceRequest object with specified resource type, name,
operation and parameters name/value pair hashtable.
|
Modifier and Type | Method and Description |
---|---|
protected void |
adoptReverseActionNames(ValList raNames) |
java.lang.Object |
clone()
Used to clone ResourceRequest Objects.
|
java.util.Hashtable |
getAuthorizationParameters()
Returns parameters required for authorization of the resource.
|
int |
getNumberOfAuthorizationParameters()
Returns count of parameters required for authorization of
the resource request object.
|
java.lang.String |
getOperation()
Returns method configured for resource request object
for example HTTP methods like GET, POST.
|
java.util.Hashtable |
getParameters()
Returns query parameters in the form of name/value pairs of String type.
|
java.lang.String |
getResource()
Returns resource
|
java.lang.String |
getResourceType()
Returns resource type
|
protected ObWebResrcOp |
getResrcOp() |
protected ObKeyValMap |
getRetainerInfo() |
protected ValNameList |
getReverseActionsFromParameters() |
java.lang.String |
getSchemeId()
Returns authentication scheme id used to protect the resource
|
protected ObAAAStatus |
getStatus() |
boolean |
isProtected()
Checks whether resource is protected.
|
protected AccessClient m_accessClient
protected LocalAccessClient m_localAccessClient
public ResourceRequest(java.lang.String resType, java.lang.String resource, java.lang.String operation) throws AccessException
resType
- Resource type, for example http, ejb etc. If null,
defaults to httpresource
- Resource nameoperation
- operation for the resource object, for example GET, POST
, PUT, HEAD, DELETE, TRACE, OPTIONS, CONNECT, OTHER.AccessException
- In case of errors during object creation
or if resource or operation string is nullpublic ResourceRequest(AccessClient aClient, java.lang.String resType, java.lang.String resource, java.lang.String operation) throws AccessException
aClient
- AccessClient object to be used for perfoming operations.resType
- Resource type, for example http, ejb etc. If null,
defaults to httpresource
- Resource nameoperation
- operation for the resource object, for example GET, POST
, PUT, HEAD, DELETE, TRACE, OPTIONS, CONNECT, OTHER.AccessException
- In case of errors during object creation
or if resource or operation string is nullpublic ResourceRequest(java.lang.String resType, java.lang.String resource, java.lang.String operation, java.util.Hashtable parameters) throws AccessException
resType
- Resource type, for example http, ejb etc., If null
defaults to httpresource
- 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.AccessException
- In case of errors during object creation
or if resource or operation string is nullpublic ResourceRequest(AccessClient aClient, java.lang.String resType, java.lang.String resource, java.lang.String operation, java.util.Hashtable parameters) throws AccessException
aClient
- AccessClient object to be used for perfoming operations.resType
- Resource type, for example http, ejb etc., If null
defaults to httpresource
- 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.AccessException
- In case of errors during object creation
or if resource or operation string is nullpublic ResourceRequest(LocalAccessClient aClient, java.lang.String resType, java.lang.String resource, java.lang.String operation, java.util.Hashtable parameters) throws AccessException
aClient
- LocalAccessClient object to be used for perfoming operations.resType
- Resource type, for example http, ejb etc., If null
defaults to httpresource
- 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.AccessException
- In case of errors during object creation
or if resource or operation string is nullpublic boolean isProtected() throws AccessException
AccessException
- In case server could not determine the protected
status of the resource or some other errorpublic java.lang.String getSchemeId() throws AccessException
AccessException
- In case if resource request object is not
initialized.public java.lang.String getResourceType()
public java.lang.String getResource()
public java.lang.String getOperation()
public java.util.Hashtable getParameters()
public java.util.Hashtable getAuthorizationParameters() throws AccessException
AccessException
- In case if it resource request object is not
initialized.public int getNumberOfAuthorizationParameters() throws AccessException
AccessException
- In case if resource request object is not
initialized.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
protected ObWebResrcOp getResrcOp() throws AccessException
AccessException
protected ObAAAStatus getStatus() throws AccessException
AccessException
protected ObKeyValMap getRetainerInfo() throws AccessException
AccessException
protected void adoptReverseActionNames(ValList raNames) throws AccessException
AccessException
protected ValNameList getReverseActionsFromParameters() throws AccessException
AccessException