|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.7.0) E10686-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adf.share.security.authorization.PolicyInspector
public final class PolicyInspector
Internal: Applications should not use this class. Provides management API to Java security policy. Deals with the assignment of permissions or privileges to Principals (which can be user or role Principals or any valid Principal).
The policy inspector delegates the requests to the concrete implementation of the
PolicyInspection
service
provider interface. The following class relationship shows how the PolicyInspector
delegates to a concrete service provider that is based on an XML file based policy.
PolicyInspector ----> PolicyInspection (spi) ^ | | XMLFilePolicyInspector (service provider example)
Constructor Summary | |
---|---|
PolicyInspector()
Internal: Applications should not use this method. Default constructor that creates the default PolicyInspection provider. |
|
PolicyInspector(java.lang.Class providerClassname)
Internal: Applications should not use this method. Constructs policy inspector and instantionates the provider class based on the supplied classname. |
|
PolicyInspector(PolicyInspection inspection)
Internal: Applications should not use this method. |
Method Summary | |
---|---|
boolean |
addPermissionClassDescriptor(oracle.adf.share.security.authorization.PermissionClassDescriptor permClassDescriptor)
Internal: Applications should not use this method. Retrieves the list of explicit policy entries for the specified resource id. |
void |
addPolicyStatement(PolicyStatement policyStatement)
Internal: Applications should not use this method. Adds a Policy statement to the security Policy. |
oracle.adf.share.security.authorization.PermissionClassDescriptor |
getPermissionClassDescriptor(java.lang.Class permClass)
Internal: Applications should not use this method. Returns specified permission class descriptor. |
oracle.adf.share.security.authorization.PermissionClassDescriptor[] |
getPermissionClassDescriptors()
Internal: Applications should not use this method. Returns all the managed permission class descriptors. |
PolicyStatement[] |
getPolicyStatements(java.security.Principal principal,
java.lang.Class[] permissionClasses)
Internal: Applications should not use this method. Retrieves the list of explicit policy entries for the specified Principal. |
PolicyStatement[] |
getPolicyStatements(java.lang.String resourceId,
java.lang.Class permissionClass)
Internal: Applications should not use this method. Retrieves the list of explicit policy entries for the specified resource id. |
void |
refresh(boolean save)
Internal: Applications should not use this method. Refresh the policy provider |
boolean |
removePermissionClassDescriptor(java.lang.Class permClass)
Internal: Applications should not use this method. Unregisters an existing permission class from the system. |
void |
removePolicyStatement(PolicyStatement policyStatement)
Internal: Applications should not use this method. Adds a Policy statement to the security Policy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolicyInspector()
public PolicyInspector(java.lang.Class providerClassname)
providerClassname
- the PolicyInspection provider class to
instantiate.public PolicyInspector(PolicyInspection inspection)
provider
- a PolicyInspection instance.Method Detail |
---|
public void addPolicyStatement(PolicyStatement policyStatement)
policyStatement
- the PolicyStatement
to be added to the Policy.public void removePolicyStatement(PolicyStatement policyStatement)
policyStatement
- the PolicyStatement
to be added to the Policy.public PolicyStatement[] getPolicyStatements(java.security.Principal principal, java.lang.Class[] permissionClasses)
principal
- the Principal for whom the Policy entries are to be retrieved.permissionClasses
- the Permission classes to restrict the return resultset with.
PolicyStatement
s given to the specified Principal.public PolicyStatement[] getPolicyStatements(java.lang.String resourceId, java.lang.Class permissionClass)
resourceId
- the target resource for which the policy statements are to be retrieved.permissionClass
- the permission class of the policy statement.
PolicyStatement
s given to the specified Principal.public oracle.adf.share.security.authorization.PermissionClassDescriptor[] getPermissionClassDescriptors()
public boolean addPermissionClassDescriptor(oracle.adf.share.security.authorization.PermissionClassDescriptor permClassDescriptor)
permClassDescriptor
- the permission class descriptor for the permission.
public boolean removePermissionClassDescriptor(java.lang.Class permClass)
permClass
- the class of the permission.
return boolean true if this list contained the specified element.public oracle.adf.share.security.authorization.PermissionClassDescriptor getPermissionClassDescriptor(java.lang.Class permClass)
permClass
- the permission class.
PermissionClassDescriptor
assocaiated with this permission class.public void refresh(boolean save)
save
- save changes
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.7.0) E10686-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |