public final class AuthorizationResponse extends SecurityResponse
Responses that can be returned based on SecurityResponse.SecurityStatus:
| Modifier and Type | Class | Description |
|---|---|---|
static class |
AuthorizationResponse.Builder |
Builder for custom Authorization responses.
|
SecurityResponse.SecurityStatus| 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getRequestHeaders, getResponseHeaders, getStatus, getStatusCode, getThrowable, toStringpublic static AuthorizationResponse permit()
public static AuthorizationResponse deny()
public static AuthorizationResponse abstain()
public static AuthorizationResponse.Builder builder()
public boolean isPermitted()
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.