Search in sources :

Example 1 with AccessPolicyProvider

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;
}
Also used : ManagedAuthorizer(org.apache.nifi.registry.security.authorization.ManagedAuthorizer) ConfigurableUserGroupProvider(org.apache.nifi.registry.security.authorization.ConfigurableUserGroupProvider) AccessPolicyProvider(org.apache.nifi.registry.security.authorization.AccessPolicyProvider) ConfigurableAccessPolicyProvider(org.apache.nifi.registry.security.authorization.ConfigurableAccessPolicyProvider)

Aggregations

AccessPolicyProvider (org.apache.nifi.registry.security.authorization.AccessPolicyProvider)1 ConfigurableAccessPolicyProvider (org.apache.nifi.registry.security.authorization.ConfigurableAccessPolicyProvider)1 ConfigurableUserGroupProvider (org.apache.nifi.registry.security.authorization.ConfigurableUserGroupProvider)1 ManagedAuthorizer (org.apache.nifi.registry.security.authorization.ManagedAuthorizer)1