public class CrestPolicyService extends Object implements PolicyService
Constructor and Description |
---|
CrestPolicyService(RequestHandler requestHandler)
Creates a
CrestPolicyService . |
Modifier and Type | Method and Description |
---|---|
Promise<PolicyDecision,PolicyException> |
evaluate(Context context,
PolicyRequest request)
Evaluates a policy request for access to a set of resources given a subject.
|
public CrestPolicyService(RequestHandler requestHandler)
CrestPolicyService
.requestHandler
- The base RequestHandler used for policy evaluation, never null
.
The RequestHandler is expected to route requests to /policies endpoint.public Promise<PolicyDecision,PolicyException> evaluate(Context context, PolicyRequest request)
PolicyService
evaluate
in interface PolicyService
context
- The request context.request
- The policy request.Copyright 2011-2017 ForgeRock AS.