|
Oracle Application Server JAAS Provider API Reference 10g Release 2 (10.1.2) B14019-02 |
||||||||||
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.
Field Summary | |
protected java.security.CodeSource |
_cs |
protected java.lang.String |
_displayName |
protected oracle.ldap.util.Guid |
_guid |
protected java.util.Set |
_principals |
Constructor Summary | |
protected |
Grantee() |
Grantee(oracle.ldap.util.Guid id, java.lang.String displayName, java.util.Set principals, java.security.CodeSource codesource) |
|
Grantee(java.security.Principal principal) Creates a new Grantee instance. |
|
Grantee(java.util.Set principals, java.security.CodeSource codesource) Creates a new Grantee instance. |
Method Summary | |
java.lang.Object |
clone() Creates and return a copy of this object. |
boolean |
equals(java.lang.Object obj) Returns true if the specified object "equals" to this object. |
java.security.CodeSource |
getCodeSource() Returns the codesource associated with this entry. |
java.lang.String |
getDisplayName() Returns the Display Name of this Grantee |
oracle.ldap.util.Guid |
getGuid() |
java.util.Set |
getPrincipals() Returns the principals associated with this entry. |
boolean |
implies(Grantee grantee) Returns if this Grantee object "implies" the specified Grantee object. |
protected void |
setCodeSource(java.security.CodeSource cs) |
protected void |
setDisplayName(java.lang.String displayName) |
protected void |
setPrincipalSet(java.util.Set prs) |
java.lang.String |
toString() Returns a string representation of this Grantee object. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String _displayName
protected oracle.ldap.util.Guid _guid
protected java.util.Set _principals
protected java.security.CodeSource _cs
Constructor Detail |
protected Grantee()
public Grantee(java.security.Principal principal)
principal
- the grantee in question.public Grantee(java.util.Set principals, java.security.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, java.lang.String displayName, java.util.Set principals, java.security.CodeSource codesource)
Method Detail |
protected void setDisplayName(java.lang.String displayName)
protected void setPrincipalSet(java.util.Set prs)
protected void setCodeSource(java.security.CodeSource cs)
public final oracle.ldap.util.Guid getGuid()
public final java.lang.String getDisplayName()
public java.util.Set getPrincipals()
public java.security.CodeSource getCodeSource()
public java.lang.Object clone()
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(java.lang.Object obj)
public java.lang.String toString()
|
Oracle Application Server JAAS Provider API Reference 10g Release 2 (10.1.2) B14019-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |