| 
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1) E10686-04  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectoracle.adf.share.security.authorization.Grantee
public class Grantee
Internal: Applications should not use this class. Represents a grantee in a policy statement. For example in the following grant in the default jdk policy, the Grantee represents a combination of the Principal and the codebase:
    grant codebase "file:D:/sample/-" 
          Principal com.foo.UserPrincipal "fred"
    {
       permission java.io.FilePermission   "file:D:/sample/foo.txt", "read,write";   
     };
 
 Either codebase and/or Grantee can be null in which case the Grantee
 will represent a global entity.
| Constructor Summary | |
|---|---|
Grantee()
Internal: Applications should not use this method. Default constructor.  | 
|
Grantee(java.security.Principal principal)
Internal: Applications should not use this method. Constructs a grantee that refers to a specific user (Principal) but applicable for all codesources.  | 
|
Grantee(java.security.Principal principal,
        java.security.CodeSource codesource)
Internal: Applications should not use this method. Constructs a grantee that refers to a specific codesource and Principal.  | 
|
| Method Summary | |
|---|---|
 boolean | 
equals(java.lang.Object obj)
Internal: Applications should not use this method. Compares two grantees.  | 
 java.security.CodeSource | 
getCodeSource()
Internal: Applications should not use this method. Accessor for the codesource associated with this grantee.  | 
 java.security.Principal | 
getPrincipal()
Internal: Applications should not use this method. Accessor for the Principal associated with this grantee.  | 
protected  void | 
setCodeSource(java.security.CodeSource codesource)
Internal: Applications should not use this method. Modifier for the codesource associated with this grantee.  | 
protected  void | 
setPrincipal(java.security.Principal principal)
Internal: Applications should not use this method. Modifier for the user associated with this grantee.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Grantee()
public Grantee(java.security.Principal principal)
principal - the Principal to be associated with this grantee.
public Grantee(java.security.Principal principal,
               java.security.CodeSource codesource)
principal - the Principal to be associated with this grantee.codesource - the CodeSource to be associated with this grantee.| Method Detail | 
|---|
protected void setPrincipal(java.security.Principal principal)
principal - the Principal to be associated with this grantee.protected void setCodeSource(java.security.CodeSource codesource)
codesource - the CodeSource to be associated with this grantee.public java.security.Principal getPrincipal()
Principal associated with this grantee.public java.security.CodeSource getCodeSource()
CodeSource associated with this grantee.public boolean equals(java.lang.Object obj)
equals in class java.lang.Object
  | 
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1) E10686-04  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||