com.ibm.sec.authz.jaccplus

Class ApplicationPermission

  1. java.lang.Object
  2. extended byjava.security.Permission
  3. extended bycom.ibm.sec.authz.jaccplus.ApplicationPermission
All implemented interfaces:
java.io.Serializable, java.security.Guard

  1. public class ApplicationPermission
  2. 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:
ApplicationPolicy, Serialized Form

Constructor Summary

Constructor and Description
ApplicationPermission(java.lang.String resource,java.lang.String actions)

Method Summary

Modifier and Type Method and Description
  1. boolean
equals(java.lang.Object obj)
  1. java.lang.String
getActions()
  1. org.w3c.dom.Node
getContent()
Method used to retrieve the content Node from this instance.
  1. int
hashCode()
  1. 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.
  1. void
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

  1. public ApplicationPermission(java.lang.String resource,
  2. java.lang.String actions)

Method Detail

setContent

  1. public void setContent(org.w3c.dom.Node obj)
Method used to set the content Node for this instance.
Parameters:
obj -

getContent

  1. public org.w3c.dom.Node getContent( )
Method used to retrieve the content Node from this instance.
Returns:
Node

equals

  1. public boolean equals(java.lang.Object obj)
Specified by:
equals in class java.security.Permission

getActions

  1. public java.lang.String getActions( )
Specified by:
getActions in class java.security.Permission

hashCode

  1. public int hashCode()
Specified by:
hashCode in class java.security.Permission

implies

  1. 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