|
Oracle9iAS JAAS 9.0.2.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.security.jazn.policy.Grantee
A Grantee represents a grantee in a policy entry.
| Constructor Summary | |
Grantee(oracle.ldap.util.Guid id,
String displayName,
Set principals,
CodeSource codesource)
|
|
Grantee(Principal principal)
Creates a new Grantee instance. |
|
Grantee(Set principals,
CodeSource codesource)
Creates a new Grantee instance. |
|
| Method Summary |
| Type | Method |
|---|---|
Object |
clone()
Creates and return a copy of this object. |
boolean |
equals(Object obj)
Returns true if the specified object "equals" to this object. |
CodeSource |
getCodeSource()
Returns the codesource associated with this entry. |
String |
getDisplayName()
Returns the Display Name of this Grantee |
oracle.ldap.util.Guid |
getGuid()
|
Set |
getPrincipals()
Returns the principals associated with this entry. |
boolean |
implies(Grantee grantee)
Returns if this Grantee object "implies" the specified Grantee object. |
String |
toString()
Returns a string representation of this Grantee object. |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify,
notifyAll, wait, wait,
wait |
| Constructor Detail |
public Grantee(Principal principal)
principal - the grantee in question.
public Grantee(Set principals,
CodeSource codesource)
principals - the grantee(s) in question. Note that when multiple
Principals are specified in a grant, the "current" Subject
(specified in a Subject.doAs() method call) will need to
have all the Principals in its Principal Set in order
to assume the granted permissions.codesource - the codesource to be associated with this entry.
If specified in a grant, then the Subject can only assume the
granted permissions when executing code from the specified
codesource. This argument can be null.
public Grantee(oracle.ldap.util.Guid id,
String displayName,
Set principals,
CodeSource codesource)
| Method Detail |
public oracle.ldap.util.Guid getGuid()
public String getDisplayName()
public Set getPrincipals()
public CodeSource getCodeSource()
public Object clone()
public boolean implies(Grantee grantee)
In general, G1.implies(G2) returns true iff
For examples:
NOTE: ROLE containment is NOT tested here. We assume that all roles have been flattened
As far as permission assignment is concerned, if G1([scott],null) implies G2([scott],http://www.oracle.com) then permissions assigned to G2 are assigned to G1 as well.
grantee - Grantee to compare againstpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
Oracle9iAS JAAS 9.0.2.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||