Package com.sun.identity.delegation
Interface DelegationEvaluator
-
- All Known Implementing Classes:
DelegationEvaluatorImpl,DelegationEvaluatorProxy
public interface DelegationEvaluatorEvaluates the permission requests.- Since:
- 12.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisAllowed(SSOToken token, DelegationPermission permission, Map<String,Set<String>> envParameters)Returns a boolean value indicating if a user has the specified permission.booleanisAllowed(SSOToken token, DelegationPermission permission, Map<String,Set<String>> envParameters, boolean subTreeMode)Returns a boolean value indicating if a user has the specified permission.
-
-
-
Method Detail
-
isAllowed
boolean isAllowed(SSOToken token, DelegationPermission permission, Map<String,Set<String>> envParameters) throws SSOException, DelegationException
Returns a boolean value indicating if a user has the specified permission.- 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
-
isAllowed
boolean isAllowed(SSOToken token, DelegationPermission permission, Map<String,Set<String>> envParameters, boolean subTreeMode) throws SSOException, DelegationException
Returns a boolean value indicating if a user has the specified permission.- 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
-
-