Class HttpStatusDecisionMapper
java.lang.Object
com.svenruppert.jsentinel.rest.HttpStatusDecisionMapper
Maps semantic authorization decisions to generic HTTP response behavior.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAuth scheme used in theWWW-Authenticateheader when an adapter challenges for a step-up. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(com.svenruppert.jsentinel.authorization.api.AuthorizationDecision decision, RestResponse response) Applies a decision to the response.
-
Field Details
-
STEP_UP_SCHEME
Auth scheme used in theWWW-Authenticateheader when an adapter challenges for a step-up. The full header value follows RFC 7235 syntax:StepUp method="<method>". Themethodparameter carries the mechanism token (e.g.MFA,REAUTH) lifted fromAuthorizationDecision.StepUpRequired.method().- See Also:
-
-
Constructor Details
-
HttpStatusDecisionMapper
public HttpStatusDecisionMapper()
-
-
Method Details
-
apply
public boolean apply(com.svenruppert.jsentinel.authorization.api.AuthorizationDecision decision, RestResponse response) Applies a decision to the response.- Parameters:
decision- decisionresponse- response- Returns:
- true if the protected handler may continue
-