|
JAAS Provider Java API Reference 10g (9.0.4.0.0) B10389-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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 | |
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 final oracle.ldap.util.Guid getGuid()
public final String getDisplayName()
public Set getPrincipals()
public CodeSource getCodeSource()
public Object clone()
clone
in class Object
public boolean implies(Grantee grantee)
In general, G1.implies(G2) returns true iff
Informally, the implication relationship is one such that the less restrictive form implies the more restrictive form.
For examples:
NOTE:
As far as permission assignment is concerned, if G1([scott],null) implies G2([scott],http://www.oracle.com) then permissions(G1)=>permissions(G2) (i.e. permissions granted to G1 are assigned to G2 as well.)
grantee
- Grantee to compare againstpublic boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
JAAS Provider Java API Reference 10g (9.0.4.0.0) B10389-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |