java.lang.Object
io.helidon.security.SecurityResponse
io.helidon.security.AuthorizationResponse
Response from an authorization decision.
Responses that can be returned based on SecurityResponse.SecurityStatus
:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for custom Authorization responses.Nested classes/interfaces inherited from class io.helidon.security.SecurityResponse
SecurityResponse.SecurityStatus
-
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorizationResponse
abstain()
This provider is not capable of making a decision about the resource (e.g.builder()
Builder for fully customized authorization response.static AuthorizationResponse
deny()
Deny the request.boolean
Returns true if access to resource was permitted.static AuthorizationResponse
permit()
Permit the request.Methods inherited from class io.helidon.security.SecurityResponse
description, requestHeaders, responseHeaders, status, statusCode, throwable, toString
-
Method Details
-
permit
Permit the request.- Returns:
- correctly initialized response
-
deny
Deny the request.- Returns:
- correctly initialized response
-
abstain
This provider is not capable of making a decision about the resource (e.g. does not know the resource).- Returns:
- correctly initialized response
-
builder
Builder for fully customized authorization response.- Returns:
- Builder instance ready for configuration
-
isPermitted
public boolean isPermitted()Returns true if access to resource was permitted.- Returns:
- true if permitted, false if denied or abstained.
-