Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.1.0)

E10686-02

oracle.adf.share.security.authorization
Class PolicyStatement

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

public class PolicyStatement
extends java.lang.Object

Internal: Applications should not use this class. Represents an explicit grant in a security Policy. The following is an example of a Policy statement in jdk's default Policy file.

    grant Principal com.foo.UserPrincipal "fred"
    {
       permission java.io.FilePermission   "file:D:/sample/foo.txt", "read,write";
       permission com.foo.CustomPermission "mySpreadSheet", "open,close";
     };
 
The above PolicyStatement represents granting of two permission to a Principal "fred"


Constructor Summary
PolicyStatement(java.security.Principal grantee, java.security.Permission permission)
          Internal: Applications should not use this method. Constructs a PolicyStatement for a given Principal and permission.
 
Method Summary
 java.security.Permission getPermission()
          Internal: Applications should not use this method. Accessor for the Permissions assocated with this grantee
 java.security.Principal getPrincipal()
          Internal: Applications should not use this method. Accessor for the Principal associated with this PolicyStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyStatement

public PolicyStatement(java.security.Principal grantee,
                       java.security.Permission permission)
Internal: Applications should not use this method. Constructs a PolicyStatement for a given Principal and permission.

Parameters:
grantee - the Principal associated with this PolicyStatement.
permission - the Permission associated with this PolicyStatement.
Method Detail

getPrincipal

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

Returns:
Principal the grantee associated with this PolicyStatement.

getPermission

public java.security.Permission getPermission()
Internal: Applications should not use this method. Accessor for the Permissions assocated with this grantee

Returns:
Permission the permission associated with this PolicyStatement.

Oracle Fusion Middleware Java API Reference for Oracle ADF Share
11g Release 1 (11.1.1.1.0)

E10686-02

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