Class OPAResponse
java.lang.Object
io.github.open_policy_agent.opa.springboot.OPAResponse
This class models the data to be returned from an OPA Spring Boot SDK policy.
The
response
schema is
compliant with the AuthZEN
spec.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable StringgetReasonForDecision(String searchKey)
-
Constructor Details
-
OPAResponse
public OPAResponse()
-
-
Method Details
-
getDecision
public boolean getDecision() -
getReasonForDecision
WrapsOPAResponseContext.getReasonForDecision(String). If the context is omitted (which the spec permits), then it returns null.
-