public interface PolicyEvaluator
Policy
.Modifier and Type | Method and Description |
---|---|
PolicyResponse |
validate(Map<Integer,Object> methodParams,
PolicyInformation policy,
ContextInfo contextInfo,
OperationType operationType)
Validate security context required to execute a method annotated with
Policy . |
PolicyResponse |
validateReadOutput(Object output,
PolicyInformation policy)
Validate the output of a read method for methods annotated with a Policy of the
IdentityType.OWNER type and a matching user of the owner type (see
TrackablePolicyUtils#isOwnerUser() ). |
PolicyResponse validate(Map<Integer,Object> methodParams, PolicyInformation policy, ContextInfo contextInfo, OperationType operationType)
Policy
.methodParams
- The method parameters in the method call being validatedpolicy
- The Policy
annotation on the methodPolicyResponse validateReadOutput(Object output, PolicyInformation policy)
IdentityType.OWNER
type and a matching user of the owner type (see
TrackablePolicyUtils#isOwnerUser()
).output
- The results of the read operationpolicy
- The Policy
annotation on the methodCopyright © 2021. All rights reserved.