/** * Clear all write accessors. */ public void clearWriteAccessors() { getRegistrySecurity().resetDigestACLs(); }
/** * Clear all write accessors */ public void clearWriteAccessors() { getRegistrySecurity().resetDigestACLs(); }
/** * Add a new write access entry for all future write operations. * @param id ID to use * @param pass password * @throws IOException on any failure to build the digest */ public boolean addWriteAccessor(String id, String pass) throws IOException { RegistrySecurity security = getRegistrySecurity(); ACL digestACL = new ACL(ZooDefs.Perms.ALL, security.toDigestId(security.digest(id, pass))); return security.addDigestACL(digestACL); }
/** * Add a new write access entry for all future write operations. * * @param id ID to use * @param pass password * @throws IOException on any failure to build the digest */ public boolean addWriteAccessor(String id, String pass) throws IOException { RegistrySecurity security = getRegistrySecurity(); ACL digestACL = new ACL(ZooDefs.Perms.ALL, security.toDigestId(security.digest(id, pass))); return security.addDigestACL(digestACL); }