public interface ConfigurableAccessPolicyProvider extends AccessPolicyProvider
| Modifier and Type | Method and Description |
|---|---|
AccessPolicy |
addAccessPolicy(AccessPolicy accessPolicy)
Adds the given policy ensuring that multiple policies can not be added for the same resource and action.
|
void |
checkInheritability(String proposedFingerprint)
When the fingerprints are not equal, this method will check if the proposed fingerprint is inheritable.
|
AccessPolicy |
deleteAccessPolicy(AccessPolicy accessPolicy)
Deletes the given policy.
|
void |
forciblyInheritFingerprint(String fingerprint)
Parses the fingerprint and determines whether or not the fingerprint can be inherited in the same manner as
inheritFingerprint(String). |
String |
getFingerprint()
Returns a fingerprint representing the authorizations managed by this authorizer.
|
void |
inheritFingerprint(String fingerprint)
Parses the fingerprint and adds any policies to the current AccessPolicyProvider.
|
default boolean |
isConfigurable(AccessPolicy accessPolicy)
Determines whether the specified access policy is configurable.
|
AccessPolicy |
updateAccessPolicy(AccessPolicy accessPolicy)
The policy represented by the provided instance will be updated based on the provided instance.
|
getAccessPolicies, getAccessPolicy, getAccessPolicy, getUserGroupProvider, initialize, onConfigured, preDestructionString getFingerprint() throws AuthorizationAccessException
AuthorizationAccessException - if there was an unexpected error performing the operationvoid inheritFingerprint(String fingerprint) throws AuthorizationAccessException
fingerprint - the fingerprint that was obtained from calling getFingerprint() on another Authorizer.AuthorizationAccessException - if there was an unexpected error performing the operationvoid forciblyInheritFingerprint(String fingerprint) throws AuthorizationAccessException
inheritFingerprint(String). If so, will inherit as such.
Otherwise, a backup of the existing policy provider will be made, if possible, and the policies will be replaced with those in the given fingerprint.fingerprint - the fingerprint to replace the existing policies withAuthorizationAccessException - if unable to perform the operationvoid checkInheritability(String proposedFingerprint) throws AuthorizationAccessException, UninheritableAuthorizationsException
AuthorizationAccessException - if there was an unexpected error performing the operationUninheritableAuthorizationsException - if the proposed fingerprint was uninheritableAccessPolicy addAccessPolicy(AccessPolicy accessPolicy) throws AuthorizationAccessException
accessPolicy - the policy to addAuthorizationAccessException - if there was an unexpected error performing the operationdefault boolean isConfigurable(AccessPolicy accessPolicy)
accessPolicy - the access policyAccessPolicy updateAccessPolicy(AccessPolicy accessPolicy) throws AuthorizationAccessException
accessPolicy - an updated policyAuthorizationAccessException - if there was an unexpected error performing the operationAccessPolicy deleteAccessPolicy(AccessPolicy accessPolicy) throws AuthorizationAccessException
accessPolicy - the policy to deleteAuthorizationAccessException - if there was an unexpected error performing the operationCopyright © 2023 Apache NiFi Project. All rights reserved.