Interface ContextDataProvider
- All Known Implementing Classes:
ConstantContextDataProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This interface can be used to expose additional information to the OPA
policy. Data returned by
getContextData(Supplier, RequestAuthorizationContext) is placed in
input.context.data. The
returned object must be JSON serializable.-
Method Summary
Modifier and TypeMethodDescriptiongetContextData(Supplier<? extends Authentication> authentication, RequestAuthorizationContext object)
-
Method Details
-
getContextData
Object getContextData(Supplier<? extends Authentication> authentication, RequestAuthorizationContext object)
-