Class ZooAclUtil
- java.lang.Object
-
- org.apache.accumulo.server.zookeeper.ZooAclUtil
-
public class ZooAclUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classZooAclUtil.ZkAccumuloAclStatusWrapper for decoding ZooKeeper ACLs in context of Accumulo usages.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ZooAclUtil.ZkAccumuloAclStatuscheckWritableAuth(List<org.apache.zookeeper.data.ACL> acls)Process the ZooKeeper acls and return a structure that shows if the accumulo user has ALL (cdrwa) access and if any other user has anything other than read access.static StringextractAuthName(org.apache.zookeeper.data.ACL acl)static StringtranslateZooPerm(int perm)translate the ZooKeeper ACL perm bits into a string.
-
-
-
Method Detail
-
extractAuthName
public static String extractAuthName(org.apache.zookeeper.data.ACL acl)
-
translateZooPerm
public static String translateZooPerm(int perm)
translate the ZooKeeper ACL perm bits into a string. The output order is cdrwa (when all perms are set) Copied from `org.apache.zookeeper.ZKUtil.getPermString()` added in more recent ZooKeeper versions.
-
checkWritableAuth
public static ZooAclUtil.ZkAccumuloAclStatus checkWritableAuth(List<org.apache.zookeeper.data.ACL> acls)
Process the ZooKeeper acls and return a structure that shows if the accumulo user has ALL (cdrwa) access and if any other user has anything other than read access.- Accumulo having access is expected - anything else needs checked
- Anyone having more than read access is unexpected and should be checked.
- Parameters:
acls- ZooKeeper ACLs for a node- Returns:
- acl status with accumulo and other accesses.
-
-