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 |
private String |
identity |
private boolean |
isAccessAttempt |
private boolean |
isAnonymous |
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.
|
String |
getIdentity()
The identity accessing the Resource.
|
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.
|
private final Resource resource
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 String getIdentity()
public boolean isAccessAttempt()
public boolean isAnonymous()
public RequestAction getAction()
public Map<String,String> getUserContext()
Copyright © 2016 Apache NiFi Project. All rights reserved.