use of org.apache.nifi.registry.security.authorization.AccessPolicyProvider in project nifi-registry by apache.
the class AuthorizerCapabilityDetection method isConfigurableUserGroupProvider.
public static boolean isConfigurableUserGroupProvider(final Authorizer authorizer) {
if (!isManagedAuthorizer(authorizer)) {
return false;
}
final ManagedAuthorizer managedAuthorizer = (ManagedAuthorizer) authorizer;
final AccessPolicyProvider accessPolicyProvider = managedAuthorizer.getAccessPolicyProvider();
return accessPolicyProvider.getUserGroupProvider() instanceof ConfigurableUserGroupProvider;
}
Aggregations