Examples of ACLProvider


Examples of org.apache.curator.framework.api.ACLProvider

        RetryPolicy retryPolicy = ZKUtils.getRetryPolicy();
        String zkConnectionString = ConfigurationService.get(ZK_CONNECTION_STRING);
        String zkNamespace = getZKNameSpace();
        zkConnectionTimeout = ConfigurationService.getInt(ZK_CONNECTION_TIMEOUT);

        ACLProvider aclProvider;
        if (Services.get().getConf().getBoolean(ZK_SECURE, false)) {
            log.info("Connecting to ZooKeeper with SASL/Kerberos and using 'sasl' ACLs");
            setJaasConfiguration();
            System.setProperty(ZooKeeperSaslClient.LOGIN_CONTEXT_NAME_KEY, "Client");
            System.setProperty("zookeeper.authProvider.1", "org.apache.zookeeper.server.auth.SASLAuthenticationProvider");
View Full Code Here

Examples of org.apache.curator.framework.api.ACLProvider

    /**
     * Builds a {@link org.apache.curator.framework.CuratorFramework} from the specified {@link java.util.Map<String, ?>}.
     */
    private synchronized CuratorFramework buildCuratorFramework(CuratorConfig curatorConfig) {
        ACLProvider aclProviderInstance = aclProvider;
        List<ConnectionStateListener> connectionListenerList = connectionStateListeners;
        return createCuratorFramework(curatorConfig, aclProviderInstance, connectionListenerList);
    }
View Full Code Here

Examples of org.apache.curator.framework.api.ACLProvider

        }

        String      aclId = commandLine.getOptionValue(ACL_ID);
        String      aclScheme = commandLine.getOptionValue(ACL_SCHEME);
        String      aclPerms = commandLine.getOptionValue(ACL_PERMISSIONS);
        ACLProvider aclProvider = null;
        if ( notNullOrEmpty(aclId) || notNullOrEmpty(aclScheme) || notNullOrEmpty(aclPerms) )
        {
            aclProvider = getAclProvider(cli, aclId, aclScheme, aclPerms);
            if ( aclProvider == null )
            {
View Full Code Here

Examples of org.apache.curator.framework.api.ACLProvider

        {
            aclScheme = "";
        }

        final ACL acl = new ACL(perms, new Id(aclScheme, aclId));
        return new ACLProvider()
        {
            @Override
            public List<ACL> getDefaultAcl()
            {
                return Collections.singletonList(acl);
View Full Code Here

Examples of org.apache.jackrabbit.core.security.authorization.acl.ACLProvider

                // UserAccessControlProvider is designed to work with an extra
                // workspace storing user and groups. therefore avoid returning
                // this ac provider for the default workspace.
                prov = new UserAccessControlProvider();
            } else {
                prov = new ACLProvider();
            }
            log.debug("Default provider for workspace " + workspaceName + " = " + prov.getClass().getName());
            props = Collections.emptyMap();
        }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.authorization.acl.ACLProvider

                // UserAccessControlProvider is designed to work with an extra
                // workspace storing user and groups. therefore avoid returning
                // this ac provider for the default workspace.
                prov = new UserAccessControlProvider();
            } else {
                prov = new ACLProvider();
            }
            log.debug("Default provider for workspace " + workspaceName + " = " + prov.getClass().getName());
            props = Collections.emptyMap();
        }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.authorization.acl.ACLProvider

                // UserAccessControlProvider is designed to work with an extra
                // workspace storing user and groups. therefore avoid returning
                // this ac provider for the default workspace.
                prov = new UserAccessControlProvider();
            } else {
                prov = new ACLProvider();
            }
            log.debug("Default provider for workspace " + workspaceName + " = " + prov.getClass().getName());
            props = Collections.EMPTY_MAP;
        }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.authorization.acl.ACLProvider

                // UserAccessControlProvider is designed to work with an extra
                // workspace storing user and groups. therefore avoid returning
                // this ac provider for the default workspace.
                prov = new UserAccessControlProvider();
            } else {
                prov = new ACLProvider();
            }
            log.debug("Default provider for workspace " + workspaceName + " = " + prov.getClass().getName());
            props = Collections.EMPTY_MAP;
        }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.authorization.principalbased.ACLProvider

        providers[0].init(systemSession, config);

        // 2) the principal-base ACL provider which is intended to provide
        //    the default/standard permissions present at an item for a given
        //    set of principals.
        providers[1] = new ACLProvider();
        providers[1].init(systemSession, configuration);
    }
View Full Code Here

Examples of org.apache.jackrabbit.core.security.authorization.principalbased.ACLProvider

        providers[0].init(systemSession, config);

        // 2) the principal-base ACL provider which is intended to provide
        //    the default/standard permissions present at an item for a given
        //    set of principals.
        providers[1] = new ACLProvider();
        providers[1].init(systemSession, configuration);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.