Package org.apache.solr.common.cloud
Class SecurityAwareZkACLProvider
- java.lang.Object
-
- org.apache.solr.common.cloud.SecurityAwareZkACLProvider
-
- All Implemented Interfaces:
ZkACLProvider
- Direct Known Subclasses:
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
-
Constructor Summary
Constructors Constructor Description SecurityAwareZkACLProvider()
-
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)
-
-
-
Field Detail
-
SECURITY_ZNODE_PATH
public static final String SECURITY_ZNODE_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-