public interface Authorizable
| Modifier and Type | Method and Description |
|---|---|
default void |
authorize(Authorizer authorizer,
RequestAction action,
NiFiUser user)
Authorizes the current user for the specified action on the specified resource.
|
default void |
authorize(Authorizer authorizer,
RequestAction action,
NiFiUser user,
Map<String,String> resourceContext)
Authorizes the current user for the specified action on the specified resource.
|
default AuthorizationResult |
checkAuthorization(Authorizer authorizer,
RequestAction action,
NiFiUser user)
Returns the result of an authorization request for the specified user for the specified action on the specified
resource.
|
default AuthorizationResult |
checkAuthorization(Authorizer authorizer,
RequestAction action,
NiFiUser user,
Map<String,String> resourceContext)
Returns the result of an authorization request for the specified user for the specified action on the specified
resource.
|
Authorizable |
getParentAuthorizable()
The parent for this Authorizable.
|
Resource |
getResource()
The Resource for this Authorizable.
|
default boolean |
isAuthorized(Authorizer authorizer,
RequestAction action,
NiFiUser user)
Returns whether the current user is authorized for the specified action on the specified resource.
|
Authorizable getParentAuthorizable()
Resource getResource()
default boolean isAuthorized(Authorizer authorizer, RequestAction action, NiFiUser user)
authorizer - authorizeraction - actiondefault AuthorizationResult checkAuthorization(Authorizer authorizer, RequestAction action, NiFiUser user, Map<String,String> resourceContext)
authorizer - authorizeraction - actionuser - userdefault AuthorizationResult checkAuthorization(Authorizer authorizer, RequestAction action, NiFiUser user)
authorizer - authorizeraction - actionuser - userdefault void authorize(Authorizer authorizer, RequestAction action, NiFiUser user, Map<String,String> resourceContext) throws AccessDeniedException
authorizer - authorizeraction - actionuser - userresourceContext - resource contextAccessDeniedExceptiondefault void authorize(Authorizer authorizer, RequestAction action, NiFiUser user) throws AccessDeniedException
authorizer - authorizeraction - actionuser - userAccessDeniedExceptionCopyright © 2016 Apache NiFi Project. All rights reserved.