Package org.apache.solr.common.cloud
Class DigestZkACLProvider
- java.lang.Object
-
- org.apache.solr.common.cloud.SecurityAwareZkACLProvider
-
- org.apache.solr.common.cloud.DigestZkACLProvider
-
- All Implemented Interfaces:
ZkACLProvider
public class DigestZkACLProvider extends SecurityAwareZkACLProvider
A class that expects aZkCredentialsInjector
to create Zookeeper ACLs using digest scheme
-
-
Field Summary
-
Fields inherited from class org.apache.solr.common.cloud.SecurityAwareZkACLProvider
SECURITY_ZNODE_PATH, zkCredentialsInjector
-
-
Constructor Summary
Constructors Constructor Description DigestZkACLProvider()
Called by reflective instantiationDigestZkACLProvider(ZkCredentialsInjector zkCredentialsInjector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.zookeeper.data.Id
createACLId(String username, String password)
protected List<org.apache.zookeeper.data.ACL>
createACLsToAdd(boolean includeReadOnly)
protected List<org.apache.zookeeper.data.ACL>
createNonSecurityACLsToAdd()
protected List<org.apache.zookeeper.data.ACL>
createSecurityACLsToAdd()
Provider ACL Credential-
Methods inherited from class org.apache.solr.common.cloud.SecurityAwareZkACLProvider
getACLsToAdd, isSecurityZNodePath, setZkCredentialsInjector
-
-
-
-
Constructor Detail
-
DigestZkACLProvider
public DigestZkACLProvider()
Called by reflective instantiation
-
DigestZkACLProvider
public DigestZkACLProvider(ZkCredentialsInjector zkCredentialsInjector)
-
-
Method Detail
-
createNonSecurityACLsToAdd
protected List<org.apache.zookeeper.data.ACL> createNonSecurityACLsToAdd()
- Specified by:
createNonSecurityACLsToAdd
in classSecurityAwareZkACLProvider
- Returns:
- Set of ACLs to return for non-security related znodes
-
createSecurityACLsToAdd
protected List<org.apache.zookeeper.data.ACL> createSecurityACLsToAdd()
Provider ACL Credential- Specified by:
createSecurityACLsToAdd
in classSecurityAwareZkACLProvider
- Returns:
- Set of ACLs to return security-related znodes
-
createACLsToAdd
protected List<org.apache.zookeeper.data.ACL> createACLsToAdd(boolean includeReadOnly)
-
-