|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.policy.ProxyPolicyEvaluator
Class that lets a priviliged user to compute policy results for
another user.
Only privileged users can get ProxyPolicyEvaluator
- only top level administrator, top level policy administrator,
organization administrator or organization policy administrator can get
ProxyPolicyEvaluator
. Top level administrator can compute policy
results for any user. Organization administrator or policy administrator can
compute policy results only for users who are members of the organization
(including sub organization) that they manage. If they try to compute policys
result for any other user, they would get a PolicyException
.
Method Summary | |
PolicyDecision |
getPolicyDecision(java.lang.String principalName,
java.lang.String resourceName,
java.util.Map env)
Gets policy decision for the user identified by the principalName for the given resource |
PolicyDecision |
getPolicyDecisionIgnoreSubjects(java.lang.String resourceName,
java.util.Set actionNames,
java.util.Map env)
Gets policy decision for a resource, skipping subject evaluation. |
java.util.Set |
getProtectedResourcesIgnoreConditions(java.lang.String principalName,
java.lang.String rootResource)
Gets protected resources for a user identified by the principalName . |
boolean |
isAllowed(java.lang.String principalName,
java.lang.String resourceName,
java.lang.String actionName,
java.util.Map env)
Evaluates a simple privilege of boolean type. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public boolean isAllowed(java.lang.String principalName, java.lang.String resourceName, java.lang.String actionName, java.util.Map env) throws PolicyException, SSOException
principalName
can perform specified action on the specified resource.
principalName
- principal name for whom to compute the privilege.resourceName
- name of the resource for which to compute
policy result.actionName
- name of the action the user is trying to perform on
the resourceenv
- run time environment parameters
PolicyException
- exception form policy framework
SSOException
- if single sign on token is invalidpublic PolicyDecision getPolicyDecision(java.lang.String principalName, java.lang.String resourceName, java.util.Map env) throws PolicyException, SSOException
principalName
for the given resource
principalName
- principal name for whom to compute the policy
decisionresourceName
- name of the resource for which to compute policy
decisionenv
- run time environment parameters
PolicyException
- exception form policy framework
SSOException
- if single sign on token is invalidpublic PolicyDecision getPolicyDecisionIgnoreSubjects(java.lang.String resourceName, java.util.Set actionNames, java.util.Map env) throws PolicyException, SSOException
AuthLevel
, AuthScheme
that would be required to
access the resource.
resourceName
- name of the resource for which to compute policy
decisionactionNames
- names of the actions the user is trying to perform on
the resourceenv
- run time environment parameters
PolicyException
- exception form policy framework
SSOException
- if single sign on token is invalidpublic java.util.Set getProtectedResourcesIgnoreConditions(java.lang.String principalName, java.lang.String rootResource) throws PolicyException, SSOException
principalName
. Conditions defined in the policies are
ignored while computing protected resources.
Only resources that are sub resources of the given
rootResource
or equal to the given rootResource
would be returned.
If all policies applicable to a resource are
only referral policies, no ProtectedResource
would be
returned for such a resource.
principalName
- principal name for whom to compute the privilege.rootResource
- only resources that are sub resources of the
given rootResource
or equal to the
given rootResource
would be returned.
If PolicyEvaluator.ALL_RESOURCES
is
passed as rootResource
, resources under
all root resources of the service
type are considered while computing protected
resources.
ProtectedResource
objects.
PolicyException
- exception form policy framework
SSOException
- if single sign on token is invalidProtectedResource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |