com.ibm.sec.authz.jaccplus
Class ApplicationPermission
- java.lang.Object
java.security.Permission
com.ibm.sec.authz.jaccplus.ApplicationPermission
All implemented interfaces:
java.io.Serializable, java.security.Guard
- public class ApplicationPermission
- extends java.security.Permission
The mechanism by which a resource identifier and an action identifier are passed to the authorization engine for evaluation.
ApplicationPermission perm = new ApplicationPermission( "test-resource", "view" ); boolean result = ApplicationPolicy.getPolicy().implies( "appId", context, perm );
See Also:
Constructor Summary
Constructor and Description |
---|
ApplicationPermission(java.lang.String resource,java.lang.String actions)
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
equals(java.lang.Object obj)
|
|
getActions()
|
|
getContent()
Method used to retrieve the content Node from this instance.
|
|
hashCode()
|
|
implies(java.security.Permission permission)
This Permission implies another if the other Permission is also an ApplicationPermission
and has name and action the same.
|
|
setContent(org.w3c.dom.Node obj)
Method used to set the content Node for this instance.
|
Methods inherited from class java.security.Permission |
---|
checkGuard, getName, newPermissionCollection, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail
ApplicationPermission
- public ApplicationPermission(java.lang.String resource,
- java.lang.String actions)
Method Detail
setContent
- public void setContent(org.w3c.dom.Node obj)
Method used to set the content Node for this instance.
Parameters:
obj
- getContent
- public org.w3c.dom.Node getContent( )
Method used to retrieve the content Node from this instance.
Returns:
Node
equals
- public boolean equals(java.lang.Object obj)
Specified by:
equals
in class java.security.Permission
getActions
- public java.lang.String getActions( )
Specified by:
getActions
in class java.security.Permission
hashCode
- public int hashCode()
Specified by:
hashCode
in class java.security.Permission
implies
- public boolean implies(java.security.Permission permission)
This Permission implies another if the other Permission is also an ApplicationPermission
and has name and action the same. This is the equivalent to calling equals().
Specified by:
implies
in class java.security.Permission
Parameters:
permission
- Returns:
boolean