public class Evaluator extends Object
PolicyEvaluator.REALM_DN
field containing the realm's DN representation.Modifier and Type | Method and Description |
---|---|
List<Entitlement> |
evaluate(String realm,
Subject subject,
Set<String> resourceNames,
Map<String,Set<String>> environment)
Returns a list of entitlements for a given subject, resource names and environment.
|
List<Entitlement> |
evaluate(String realm,
Subject subject,
String resourceName,
Map<String,Set<String>> environment,
boolean recursive)
Returns a list of entitlements for a given subject, resource name
and environment.
|
public List<Entitlement> evaluate(String realm, Subject subject, Set<String> resourceNames, Map<String,Set<String>> environment) throws EntitlementException
realm
- Realm Name.subject
- Subject who is under evaluation.resourceNames
- Resource names.environment
- Environment parameters.EntitlementException
- if the result cannot be determined.public List<Entitlement> evaluate(String realm, Subject subject, String resourceName, Map<String,Set<String>> environment, boolean recursive) throws EntitlementException
realm
- Realm Name.subject
- Subject who is under evaluation.resourceName
- Resource name.environment
- Environment parameters.recursive
- true
to perform evaluation on sub resources from the given resource name.EntitlementException
- if the result cannot be determined.Copyright © 2010-2018, ForgeRock All Rights Reserved.