- java.lang.Object
-
- io.helidon.security.SecurityResponse
-
- io.helidon.security.AuthorizationResponse
-
public final class AuthorizationResponse extends SecurityResponse
Response from an authorization decision.Responses that can be returned based on
SecurityResponse.SecurityStatus
:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthorizationResponse.Builder
Builder for custom Authorization responses.-
Nested classes/interfaces inherited from class io.helidon.security.SecurityResponse
SecurityResponse.SecurityStatus
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthorizationResponse
abstain()
This provider is not capable of making a decision about the resource (e.g.static AuthorizationResponse.Builder
builder()
Builder for fully customized authorization response.static AuthorizationResponse
deny()
Deny the request.boolean
isPermitted()
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 Detail
-
permit
public static AuthorizationResponse permit()
Permit the request.- Returns:
- correctly initialized response
-
deny
public static AuthorizationResponse deny()
Deny the request.- Returns:
- correctly initialized response
-
abstain
public static AuthorizationResponse 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
public static AuthorizationResponse.Builder 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.
-
-