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
structure of the response is defined by the AuthZEN spec
(https://openid.github.io/authzen).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getReasonForDecision
(String searchKey) Wraps OPAResponseContext.getReasonForDecision().void
setContext
(OPAResponseContext newContext) void
setDecision
(boolean newDecision)
-
Constructor Details
-
OPAResponse
public OPAResponse()
-
-
Method Details
-
getDecision
public boolean getDecision() -
setDecision
public void setDecision(boolean newDecision) -
getContext
-
setContext
-
getReasonForDecision
Wraps OPAResponseContext.getReasonForDecision(). If the context is omitted (which the spec permits), then it returns null.
-