public class DelegationEvaluatorImpl extends Object implements DelegationEvaluator
DelegationEvaluator
class provides interfaces to evaluate
access permissions for an administrator.Constructor and Description |
---|
DelegationEvaluatorImpl()
Constructor of
DelegationEvaluator to get access control
permissions for users. |
Modifier and Type | Method and Description |
---|---|
Set |
getPermissions(SSOToken token,
String orgName)
Returns a set of permissions that a user has.
|
boolean |
isAllowed(SSOToken token,
DelegationPermission permission,
Map envParameters)
Returns a boolean value indicating if a user has the specified
permission.
|
boolean |
isAllowed(SSOToken token,
DelegationPermission permission,
Map envParameters,
boolean subTreeMode)
Returns a boolean value indicating if a user has the specified permission.
|
public DelegationEvaluatorImpl()
DelegationEvaluator
to get access control
permissions for users.public boolean isAllowed(SSOToken token, DelegationPermission permission, Map envParameters, boolean subTreeMode) throws SSOException, DelegationException
DelegationEvaluator
isAllowed
in interface DelegationEvaluator
token
- SSO token of the user evaluating permissionpermission
- delegation permission to be evaluatedenvParameters
- run-time environment parameterssubTreeMode
- whether to run in subtree mode or notSSOException
- if single-sign-on token invalid or expiredDelegationException
- for any other abnormal conditionpublic boolean isAllowed(SSOToken token, DelegationPermission permission, Map envParameters) throws SSOException, DelegationException
isAllowed
in interface DelegationEvaluator
token
- sso token of the user evaluating permissionpermission
- delegation permission to be evaluatedenvParameters
- run-time environment parametersSSOException
- if single-sign-on token invalid or expiredDelegationException
- for any other abnormal conditionpublic Set getPermissions(SSOToken token, String orgName) throws SSOException, DelegationException
token
- SSOToken
of the user requesting permissionsorgName
- The name of the realm in which a user's delegation
permissions are evaluated.Set
of permissions that a user hasSSOException
- if single-sign-on token invalid or expiredDelegationException
- for any other abnormal conditionCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.