java.io.Serializable
, Resource
, SelfDescribingResource
, SelfDescribingResourceV2
public final class ApplicationResource extends ResourceBase
ApplicationResource
class is used by a container to specify the
Application resource (and method related to the resource) for which a security policy is being
defined, or that a caller is attempting to access.
The toString
format (which is produced by the ResourceBase
class) for an Application resource is:
type=<app>, application=myApp
This resource is primarily used in the creation of a security policy for an application that contains multiple, different types of components. In particular, it should be used to define a security policy that is applied equally to all components of an application, instead of to any specific component of the application.
id, length, NO_PARENT, parent, resStr, SCOPE_RESOURCE_ACTION, values
LIST_FIELD_TYPE, NORMAL_FIELD_TYPE, PATH_FIELD_TYPE, UNDEFINED_FIELD_TYPE
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object obj) |
Compares this resource to the resource in the specified object.
|
java.lang.String |
getApplicationName() |
Gets the name associated with the
ApplicationResource . |
java.lang.String[] |
getKeys() |
Gets keys for the
ApplicationResource . |
java.lang.String |
getType() |
Gets the type of this resource (
ApplicationResource ). |
protected Resource |
makeParent() |
Gets a
Resource object that represents the parent of the
current ApplicationResource . |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
appendArrayValue, appendValue, getFieldType, getID, getParentResource, getRepeatingFieldIndex, getRepeatingFieldTerminatingIndex, getValues, hashCode, init, init, isTransitiveField, toString, writeResourceString
public java.lang.String[] getKeys()
ApplicationResource
.getKeys
in interface Resource
getKeys
in class ResourceBase
ApplicationResource
's keys.protected Resource makeParent()
Resource
object that represents the parent of the
current ApplicationResource
. If the resource does not have a parent,
the value of null
must be returned.
There is no inheritance hierachy inherent in an ApplicationResource
. This
returns the resource that was passed in to the ApplicationResource
at
creation time. This is why an ApplicationResource
can appear in the
parentage of EISResource
s, and URLResource
s.
makeParent
in class ResourceBase
Resource
object of the parent resource.public boolean equals(java.lang.Object obj)
equals
in interface Resource
equals
in class ResourceBase
obj
- the other resource with which to compare this resource.TRUE
if the resource passed in matches this resource,
and FALSE
otherwise.Object.equals(Object)
public java.lang.String getType()
ApplicationResource
).public java.lang.String getApplicationName()
ApplicationResource
.