Search in sources :

Example 1 with Authorizor

use of org.apache.accumulo.server.security.handler.Authorizor in project accumulo by apache.

the class SecurityOperation method getAuthorizor.

protected static Authorizor getAuthorizor(String instanceId, boolean initialize) {
    AccumuloConfiguration conf = SiteConfiguration.getInstance();
    Authorizor toRet = Property.createInstanceFromPropertyName(conf, Property.INSTANCE_SECURITY_AUTHORIZOR, Authorizor.class, ZKAuthorizor.getInstance());
    toRet.initialize(instanceId, initialize);
    return toRet;
}
Also used : Authorizor(org.apache.accumulo.server.security.handler.Authorizor) ZKAuthorizor(org.apache.accumulo.server.security.handler.ZKAuthorizor) AccumuloConfiguration(org.apache.accumulo.core.conf.AccumuloConfiguration)

Example 2 with Authorizor

use of org.apache.accumulo.server.security.handler.Authorizor in project accumulo by apache.

the class SecurityOperation method getAuthorizor.

protected static Authorizor getAuthorizor(ServerContext context) {
    Authorizor toRet = Property.createInstanceFromPropertyName(context.getConfiguration(), Property.INSTANCE_SECURITY_AUTHORIZOR, Authorizor.class, new ZKAuthorizor());
    toRet.initialize(context);
    return toRet;
}
Also used : Authorizor(org.apache.accumulo.server.security.handler.Authorizor) ZKAuthorizor(org.apache.accumulo.server.security.handler.ZKAuthorizor) ZKAuthorizor(org.apache.accumulo.server.security.handler.ZKAuthorizor)

Aggregations

Authorizor (org.apache.accumulo.server.security.handler.Authorizor)2 ZKAuthorizor (org.apache.accumulo.server.security.handler.ZKAuthorizor)2 AccumuloConfiguration (org.apache.accumulo.core.conf.AccumuloConfiguration)1