Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E27155-01 ESAPI


oracle.security.jps.service.credstore
Class CredentialAccessPermission

java.lang.Object
  extended by java.security.Permission
      extended by oracle.security.jps.service.credstore.CredentialAccessPermission

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

public final class CredentialAccessPermission
extends java.security.Permission
implements java.io.Serializable

The CredentialAccessPermission class is responsible for implementing the fine-grained access control model of CSF.

The name for a CredentialAccessPermission is the name of the given permission The naming convention follows the hierarchical property naming convention. The supported target format is context=SYSTEM,mapName=M1,keyName=K1 where M1 and K1 are map name and key name respectively and '*' can be used to represent all map names and/or all key names The supported action format is 'read,write,update,delete'. A '*' can be used to represent all actions.

See Also:
Serialized Form

Constructor Summary
CredentialAccessPermission(java.lang.String name, java.lang.String actions)
          Creates a new CredentialAccessPermission instance.

 

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

 

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

 

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

 

Constructor Detail

CredentialAccessPermission

public CredentialAccessPermission(java.lang.String name,
                                  java.lang.String actions)
Creates a new CredentialAccessPermission instance.
Parameters:
name - The target name. Supported format is context=SYSTEM,mapName=M,keyName=K
actions - The action attribute which can be read, write, update, delete
Since:
CSF 0.1

Method Detail

getActions

public java.lang.String getActions()
Returns the actions of this permission as a string.
Specified by:
getActions in class java.security.Permission
Returns:
a comma-seperated list of actions

implies

public boolean implies(java.security.Permission permission)
Checks if the specified permission is "implied" by this object.

More specifically, this method returns true if:

Specified by:
implies in class java.security.Permission
Parameters:
permission - the permission to check against.
Returns:
true if the passed permission is equal to or implied by this permission, false otherwise.

hashCode

public int hashCode()
Returns the hash code value for this object.
Specified by:
hashCode in class java.security.Permission
Returns:
the hash code value for this object.

equals

public boolean equals(java.lang.Object obj)
Checks two Permission objects for equality.
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.

newPermissionCollection

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

Skip navigation links

Oracle Fusion Middleware Management Java API Reference for Oracle Entitlements Server
11g Release 2 (11.1.2)

E27155-01 ESAPI


Copyright © 2011,2012, Oracle and/or its affiliates. All rights reserved.