Skip navigation links

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

E14650-03


oracle.security.jps.service.policystore.info
Interface GrantEntry

All Superinterfaces:
GenericEntry

public interface GrantEntry
extends GenericEntry

An in-memory representation privileges granted to a grantee.

A grantee comprises of a one or more Principals or a CodeSource. Privileges are expressed in terms of PermissionEntry, which at runtime translates to a Permission.


Method Summary
 boolean equals(java.lang.Object another)
          Indicates where some other object is "equal" to this object.
 GranteeEntry getGranteeEntry()
          Returns the grantee.
 java.util.List getPermissionEntries()
          Returns the Permissions granted to this grantee.
 java.util.List getPermissionEntries(java.lang.String permSetName)
          Return permissions granted to the grantee based upon a criteria.
 java.util.Set getPermissionSetNames()
          Returns the names of all the PermissionSet names associated with this grant.

 

Methods inherited from interface oracle.security.jps.service.policystore.info.GenericEntry
accepts, getParent, setParent

 

Method Detail

getGranteeEntry

GranteeEntry getGranteeEntry()
Returns the grantee.

getPermissionEntries

java.util.List getPermissionEntries()
Returns the Permissions granted to this grantee.

Permissions returned in this list are permissions granted by via of a grant of an PermissionSet, or a direct grant of a Permission to the grantee

Returns:
list of permission entries.

getPermissionSetNames

java.util.Set getPermissionSetNames()
Returns the names of all the PermissionSet names associated with this grant. An empty Set may be returned if there are no PermissionSets associated with the Grant.
Returns:
Names of PermissionSets.

equals

boolean equals(java.lang.Object another)
Indicates where some other object is "equal" to this object. Returns true if they are equal. False otherwise.
Overrides:
equals in class java.lang.Object

getPermissionEntries

java.util.List getPermissionEntries(java.lang.String permSetName)
Return permissions granted to the grantee based upon a criteria.
Parameters:
permSetName - if permSetName is null, all permissions granted to the grantee by a grant are only returned.

If permSetName is '*', then all permissions granted to the grantee by all PermissionSets are returned.

If permSetName is a valid PermissionSet name, then only the permissions granted by this PermissionSet are returned. A valid PermissionSet is one that is contained in the return result of GrantEntry.getPermissionSetNames().

Returns:
list of permissions.

Skip navigation links

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

E14650-03


Copyright © 2010, Oracle. All rights reserved.