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.audit
Class AuditStoreAccessPermission

java.lang.Object
  extended by java.security.Permission
      extended by oracle.security.jps.service.audit.AuditStoreAccessPermission

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

public final class AuditStoreAccessPermission
extends java.security.Permission
implements java.io.Serializable
See Also:
Serialized Form

Constructor Summary
AuditStoreAccessPermission(java.lang.String name, java.lang.String actions)
          Constructs a permission with the specified componentType name, and actions, i.e.

 

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.

 

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

AuditStoreAccessPermission

public AuditStoreAccessPermission(java.lang.String name,
                                  java.lang.String actions)
Constructs a permission with the specified componentType name, and actions, i.e. read, create, modify and delete.
Parameters:
name - name of the Permission object being created.
actions - actions of accessing audit store.

Method Detail

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.

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.

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.