public class AuthorizationRequest extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AuthorizationRequest.Builder
AuthorizationRequest builder.
|
| Modifier and Type | Field and Description |
|---|---|
private RequestAction |
action |
static String |
DEFAULT_EXPLANATION |
private Supplier<String> |
explanationSupplier |
private Set<String> |
groups |
private String |
identity |
private boolean |
isAccessAttempt |
private boolean |
isAnonymous |
private Resource |
requestedResource |
private Resource |
resource |
private Map<String,String> |
resourceContext |
private Map<String,String> |
userContext |
| Modifier | Constructor and Description |
|---|---|
private |
AuthorizationRequest(AuthorizationRequest.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
RequestAction |
getAction()
The action being taken against the Resource.
|
Supplier<String> |
getExplanationSupplier()
A supplier for the explanation if access is denied.
|
Set<String> |
getGroups()
The groups the user making this request belongs to.
|
String |
getIdentity()
The identity accessing the Resource.
|
Resource |
getRequestedResource()
The original Resource being requested.
|
Resource |
getResource()
The Resource being authorized.
|
Map<String,String> |
getResourceContext()
The event attributes to make additional access decisions for provenance events.
|
Map<String,String> |
getUserContext()
The userContext of the user request to make additional access decisions.
|
boolean |
isAccessAttempt()
Whether this is a direct access attempt of the Resource if if it's being checked as part of another response.
|
boolean |
isAnonymous()
Whether the entity accessing is anonymous.
|
public static final String DEFAULT_EXPLANATION
private final Resource resource
private final Resource requestedResource
private final String identity
private final RequestAction action
private final boolean isAccessAttempt
private final boolean isAnonymous
private AuthorizationRequest(AuthorizationRequest.Builder builder)
public Resource getResource()
public Resource getRequestedResource()
public String getIdentity()
public Set<String> getGroups()
public boolean isAccessAttempt()
public boolean isAnonymous()
public RequestAction getAction()
public Map<String,String> getUserContext()
public Map<String,String> getResourceContext()
Copyright © 2023 Apache NiFi Project. All rights reserved.