@Override
  public void nodeDeleted(String path) {
    if (keysParentZNode.equals(ZKUtil.getParent(path))) {
      String keyId = ZKUtil.getNodeName(path);
      try {
        Integer id = Integer.valueOf(keyId);
        secretManager.removeKey(id);
        LOG.info("Node deleted id={}", id);
      } catch (NumberFormatException nfe) {
        LOG.error("Invalid znode name for key ID '" + keyId + "'", nfe);
      }
    }
  }
Synchronizes token encryption keys across cluster nodes.
hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/ZKSecretWatcher.java