Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14650-05


oracle.security.jps.service.policystore
Class RoleAdminPermission

java.lang.Object
  extended by java.security.Permission
      extended by oracle.security.jps.service.policystore.RoleAdminPermission

All Implemented Interfaces:
java.io.Serializable, java.security.Guard

public final class RoleAdminPermission
extends java.security.Permission

The grantee of this permission is further granted the right to grant/revoke the target role.

Since:
release specific (what release of product did this appear in)
Version:
$Header: jazn/jps/src/jps-api/oracle/security/jps/service/policystore/RoleAdminPermission.java /main/5 2010/02/25 00:43:11 svepa Exp $
See Also:
Serialized Form

Nested Class Summary
static class RoleAdminPermission.RoleAdminAction
          Represents all valid actions supported by RoleAdminPermission

 

Field Summary
static java.lang.String MAS
           

 

Constructor Summary
RoleAdminPermission(java.lang.String rolename)
           
RoleAdminPermission(java.lang.String rolename, java.lang.String actions)
          Construct an instance of a RoleAdminPermission.

 

Method Summary
 boolean equals(java.lang.Object obj)
          Checks two Permission objects for equality.
 java.lang.String getActions()
          Returns the actions as a String.
 int hashCode()
          Returns the hash code value for this Permission object.
 boolean implies(java.security.Permission permission)
          Checks if the specified permission's actions are "implied by" this object's actions.
 boolean implies(java.security.Permission permission, boolean exactMatch)
          Checks if the specified permission's actions are "implied by" this object's actions.
 java.security.PermissionCollection newPermissionCollection()
          Returns a PermissionCollection.
 java.lang.String toString()
           

 

Methods inherited from class java.security.Permission
checkGuard, getName

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Field Detail

MAS

public static final java.lang.String MAS
See Also:
Constant Field Values

Constructor Detail

RoleAdminPermission

public RoleAdminPermission(java.lang.String rolename)
                    throws PolicyStoreException
Throws:
PolicyStoreException

RoleAdminPermission

public RoleAdminPermission(java.lang.String rolename,
                           java.lang.String actions)
                    throws PolicyStoreException
Construct an instance of a RoleAdminPermission. The role name corresponds to an AdminRolePrincipal. Valid actions are: CREATE, DELETE, DELETEALL, GRANT, REVOKE, MAP, UNMAP.
Parameters:
rolename -
actions -
Throws:
PolicyStoreException

Method Detail

newPermissionCollection

public java.security.PermissionCollection newPermissionCollection()
Returns a PermissionCollection.
Overrides:
newPermissionCollection in class java.security.Permission
Returns:
PermissionCollection

implies

public boolean implies(java.security.Permission permission)
Checks if the specified permission's actions are "implied by" this object's actions.

This must be implemented by subclasses of Permission, as they are the only ones that can impose semantics on a Permission object.

The implies method is used by the AccessController to determine whether or not a requested permission is implied by another permission that is known to be valid in the current execution context.

Specified by:
implies in class java.security.Permission
Parameters:
permission - the permission to check against.
Returns:
true if the specified permission is implied by this object, false if not.

implies

public boolean implies(java.security.Permission permission,
                       boolean exactMatch)
Checks if the specified permission's actions are "implied by" this object's actions.

This must be implemented by subclasses of Permission, as they are the only ones that can impose semantics on a Permission object.

The implies method is used by the AccessController to determine whether or not a requested permission is implied by another permission that is known to be valid in the current execution context.

Parameters:
permission - the permission to check against.
Returns:
true if the specified permission is implied by this object, false if not.

equals

public boolean equals(java.lang.Object obj)
Checks two Permission objects for equality.

Do not use the equals method for making access control decisions; use the implies method.

Specified by:
equals in class java.security.Permission
Parameters:
obj - the object we are testing for equality with this object.
Returns:
true if both Permission objects are equivalent.

hashCode

public int hashCode()
Returns the hash code value for this Permission object.

The required hashCode behavior for Permission Objects is the following:

Specified by:
hashCode in class java.security.Permission
Returns:
a hash code value for this object.

getActions

public java.lang.String getActions()
Returns the actions as a String. This is abstract so subclasses can defer creating a String representation until one is needed. Subclasses should always return actions in what they consider to be their canonical form. For example, two FilePermission objects created via the following:
   perm1 = new FilePermission(p1,"read,write");
   perm2 = new FilePermission(p2,"write,read");
 

both return "read,write" when the getActions method is invoked.

Specified by:
getActions in class java.security.Permission
Returns:
the actions of this Permission.

toString

public java.lang.String toString()
Overrides:
toString in class java.security.Permission

Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E14650-05


Copyright © 2011, Oracle. All rights reserved.