Package com.styra.opa.springboot
Class OPAResponse
java.lang.Object
com.styra.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
-
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.
-