public interface PermissionEntry
To create an in-memory representation of PermissionEntry
use InfoFactory.newPermissionEntry(String, String, String)
or InfoFactory.newPermissionEntry(String, String, String, String)
PermissionEntry
objects are modified implicitly via the GrantManager.grant(java.util.Set,CodeSourceEntry,String)
and GrantManager.revoke(java.util.Set,CodeSourceEntry,String)
methods. NOTE
If a PermissionEntry represents a ResourcePermission
, then PermissionEntry.getResourceTypeName()
is equal to ResourcePermission.getType()
, PermissionEntry.getTargetName()
is equal to ResourcePermission.getResourceName()
and PermissionEntry.getClassName()
is equal to "oracle.security.jps.ResourcePermission"
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object another)
Overrides Object.equals to verify whether another object is equal to this PermissionEntry
|
java.lang.String |
getActions()
Returns the actions permitted by this permission entry
|
BaseEntry |
getBaseEntry()
Returns the BaseEntry of this PermissionEntry
|
java.lang.String |
getClassName()
Returns the class name (String) for the permission entry
|
java.security.Permission |
getPermission()
Returns the Permission object corresponding to this permission entry
|
java.lang.String |
getResourceTypeName()
Returns the resource type name (String) of the resource being protected by this permission entry
|
java.lang.String |
getTargetName()
Returns the name of the target (resource) being protected by this permission entry
|
java.lang.String getClassName()
java.lang.String getTargetName()
java.lang.String getActions()
java.security.Permission getPermission()
java.lang.String getResourceTypeName()
boolean equals(java.lang.Object another)
equals
in class java.lang.Object
another
- Object to be compared to this PermissionEntryBaseEntry getBaseEntry()