Package com.sun.identity.delegation
Class DelegationEvaluatorImpl
- java.lang.Object
-
- com.sun.identity.delegation.DelegationEvaluatorImpl
-
- All Implemented Interfaces:
DelegationEvaluator
public class DelegationEvaluatorImpl extends Object implements DelegationEvaluator
TheDelegationEvaluatorclass provides interfaces to evaluate access permissions for an administrator.
-
-
Constructor Summary
Constructors Constructor Description DelegationEvaluatorImpl()Constructor ofDelegationEvaluatorto get access control permissions for users.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetgetPermissions(SSOToken token, String orgName)Returns a set of permissions that a user has.booleanisAllowed(SSOToken token, DelegationPermission permission, Map envParameters)Returns a boolean value indicating if a user has the specified permission.booleanisAllowed(SSOToken token, DelegationPermission permission, Map envParameters, boolean subTreeMode)Returns a boolean value indicating if a user has the specified permission.
-
-
-
Method Detail
-
isAllowed
public boolean isAllowed(SSOToken token, DelegationPermission permission, Map envParameters, boolean subTreeMode) throws SSOException, DelegationException
Description copied from interface:DelegationEvaluatorReturns a boolean value indicating if a user has the specified permission.- Specified by:
isAllowedin interfaceDelegationEvaluator- Parameters:
token- SSO token of the user evaluating permissionpermission- delegation permission to be evaluatedenvParameters- run-time environment parameterssubTreeMode- whether to run in subtree mode or not- Returns:
- the result of the evaluation as a boolean value
- Throws:
SSOException- if single-sign-on token invalid or expiredDelegationException- for any other abnormal condition
-
isAllowed
public boolean isAllowed(SSOToken token, DelegationPermission permission, Map envParameters) throws SSOException, DelegationException
Returns a boolean value indicating if a user has the specified permission.- Specified by:
isAllowedin interfaceDelegationEvaluator- Parameters:
token- sso token of the user evaluating permissionpermission- delegation permission to be evaluatedenvParameters- run-time environment parameters- Returns:
- the result of the evaluation as a boolean value
- Throws:
SSOException- if single-sign-on token invalid or expiredDelegationException- for any other abnormal condition
-
getPermissions
public Set getPermissions(SSOToken token, String orgName) throws SSOException, DelegationException
Returns a set of permissions that a user has.- Parameters:
token-SSOTokenof the user requesting permissionsorgName- The name of the realm in which a user's delegation permissions are evaluated.- Returns:
- a
Setof permissions that a user has - Throws:
SSOException- if single-sign-on token invalid or expiredDelegationException- for any other abnormal condition
-
-