Class ZooAuthenticationKeyWatcher
- java.lang.Object
-
- org.apache.accumulo.server.security.delegation.ZooAuthenticationKeyWatcher
-
- All Implemented Interfaces:
org.apache.zookeeper.Watcher
public class ZooAuthenticationKeyWatcher extends Object implements org.apache.zookeeper.Watcher
Watch ZooKeeper to notice changes in the published keys so that authenticate can properly occur using delegation tokens.
-
-
Constructor Summary
Constructors Constructor Description ZooAuthenticationKeyWatcher(AuthenticationTokenSecretManager secretManager, ZooReader zk, String baseNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocess(org.apache.zookeeper.WatchedEvent event)voidupdateAuthKeys()Entry point to seed the localAuthenticationKeycache from ZooKeeper and set the first watcher for future updates in ZooKeeper.
-
-
-
Constructor Detail
-
ZooAuthenticationKeyWatcher
public ZooAuthenticationKeyWatcher(AuthenticationTokenSecretManager secretManager, ZooReader zk, String baseNode)
-
-
Method Detail
-
process
public void process(org.apache.zookeeper.WatchedEvent event)
- Specified by:
processin interfaceorg.apache.zookeeper.Watcher
-
updateAuthKeys
public void updateAuthKeys() throws org.apache.zookeeper.KeeperException, InterruptedExceptionEntry point to seed the localAuthenticationKeycache from ZooKeeper and set the first watcher for future updates in ZooKeeper.- Throws:
org.apache.zookeeper.KeeperExceptionInterruptedException
-
-