Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.1.0)

E17486-02

oracle.adf.share.security.authorization
Class Grantee

java.lang.Object
  extended by oracle.adf.share.security.authorization.Grantee

public class Grantee
extends java.lang.Object

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

Grantee

public Grantee()
Internal: Applications should not use this method. Default constructor. Refers to a global grantee, ie. applicable to all codesources and Principals.


Grantee

public 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.

Parameters:
principal - the Principal to be associated with this grantee.

Grantee

public 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.

Parameters:
principal - the Principal to be associated with this grantee.
codesource - the CodeSource to be associated with this grantee.
Method Detail

setPrincipal

protected void setPrincipal(java.security.Principal principal)
Internal: Applications should not use this method. Modifier for the user associated with this grantee.

Parameters:
principal - the Principal to be associated with this grantee.

setCodeSource

protected void setCodeSource(java.security.CodeSource codesource)
Internal: Applications should not use this method. Modifier for the codesource associated with this grantee.

Parameters:
codesource - the CodeSource to be associated with this grantee.

getPrincipal

public java.security.Principal getPrincipal()
Internal: Applications should not use this method. Accessor for the Principal associated with this grantee.

Returns:
principal the Principal associated with this grantee.

getCodeSource

public java.security.CodeSource getCodeSource()
Internal: Applications should not use this method. Accessor for the codesource associated with this grantee.

Returns:
CodeSource the CodeSource associated with this grantee.

equals

public boolean equals(java.lang.Object obj)
Internal: Applications should not use this method. Compares two grantees.

Overrides:
equals in class java.lang.Object

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 2 (11.1.2.1.0)

E17486-02

Copyright © 1997, 2011, Oracle. All rights reserved.