Package org.apache.solr.common.cloud
Class SecurityAwareZkACLProvider
- java.lang.Object
-
- org.apache.solr.common.cloud.SecurityAwareZkACLProvider
-
- All Implemented Interfaces:
ZkACLProvider
- Direct Known Subclasses:
DigestZkACLProvider
,SaslZkACLProvider
,VMParamsAllAndReadonlyDigestZkACLProvider
public abstract class SecurityAwareZkACLProvider extends Object implements ZkACLProvider
ZkACLProvider
capable of returning a different set ofACL
s for security-related znodes (default: subtree under /security and security.json) vs non-security-related znodes.
-
-
Field Summary
Fields Modifier and Type Field Description static String
SECURITY_ZNODE_PATH
protected ZkCredentialsInjector
zkCredentialsInjector
-
Constructor Summary
Constructors Constructor Description SecurityAwareZkACLProvider()
SecurityAwareZkACLProvider(ZkCredentialsInjector zkCredentialsInjector)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract List<org.apache.zookeeper.data.ACL>
createNonSecurityACLsToAdd()
protected abstract List<org.apache.zookeeper.data.ACL>
createSecurityACLsToAdd()
List<org.apache.zookeeper.data.ACL>
getACLsToAdd(String zNodePath)
protected boolean
isSecurityZNodePath(String zNodePath)
void
setZkCredentialsInjector(ZkCredentialsInjector zkCredentialsInjector)
-
-
-
Field Detail
-
SECURITY_ZNODE_PATH
public static final String SECURITY_ZNODE_PATH
- See Also:
- Constant Field Values
-
zkCredentialsInjector
protected ZkCredentialsInjector zkCredentialsInjector
-
-
Constructor Detail
-
SecurityAwareZkACLProvider
public SecurityAwareZkACLProvider()
-
SecurityAwareZkACLProvider
public SecurityAwareZkACLProvider(ZkCredentialsInjector zkCredentialsInjector)
-
-
Method Detail
-
setZkCredentialsInjector
public void setZkCredentialsInjector(ZkCredentialsInjector zkCredentialsInjector)
- Specified by:
setZkCredentialsInjector
in interfaceZkACLProvider
- Parameters:
zkCredentialsInjector
- The ZkCredentialsInjector that injects ZK credentials
-
getACLsToAdd
public final List<org.apache.zookeeper.data.ACL> getACLsToAdd(String zNodePath)
- Specified by:
getACLsToAdd
in interfaceZkACLProvider
-
isSecurityZNodePath
protected boolean isSecurityZNodePath(String zNodePath)
-
createNonSecurityACLsToAdd
protected abstract List<org.apache.zookeeper.data.ACL> createNonSecurityACLsToAdd()
- Returns:
- Set of ACLs to return for non-security related znodes
-
createSecurityACLsToAdd
protected abstract List<org.apache.zookeeper.data.ACL> createSecurityACLsToAdd()
- Returns:
- Set of ACLs to return security-related znodes
-
-