public interface AccessPolicyProvider
| Modifier and Type | Method and Description |
|---|---|
Set<AccessPolicy> |
getAccessPolicies()
Retrieves all access policies.
|
AccessPolicy |
getAccessPolicy(String identifier)
Retrieves the policy with the given identifier.
|
AccessPolicy |
getAccessPolicy(String resourceIdentifier,
RequestAction action)
Gets the access policies for the specified resource identifier and request action.
|
UserGroupProvider |
getUserGroupProvider()
Returns the UserGroupProvider for this managed Authorizer.
|
void |
initialize(AccessPolicyProviderInitializationContext initializationContext)
Called immediately after instance creation for implementers to perform additional setup
|
void |
onConfigured(AuthorizerConfigurationContext configurationContext)
Called to configure the Authorizer.
|
void |
preDestruction()
Called immediately before instance destruction for implementers to release resources.
|
Set<AccessPolicy> getAccessPolicies() throws AuthorizationAccessException
AuthorizationAccessException - if there was an unexpected error performing the operationAccessPolicy getAccessPolicy(String identifier) throws AuthorizationAccessException
identifier - the id of the policy to retrieveAuthorizationAccessException - if there was an unexpected error performing the operationAccessPolicy getAccessPolicy(String resourceIdentifier, RequestAction action) throws AuthorizationAccessException
resourceIdentifier - the resource identifieraction - the request actionAuthorizationAccessException - if there was any unexpected error performing the operationUserGroupProvider getUserGroupProvider()
void initialize(AccessPolicyProviderInitializationContext initializationContext) throws AuthorizerCreationException
initializationContext - in which to initializeAuthorizerCreationExceptionvoid onConfigured(AuthorizerConfigurationContext configurationContext) throws AuthorizerCreationException
configurationContext - at the time of configurationAuthorizerCreationException - for any issues configuring the providervoid preDestruction()
throws AuthorizerDestructionException
AuthorizerDestructionException - If pre-destruction fails.Copyright © 2023 Apache NiFi Project. All rights reserved.