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 void
process(org.apache.zookeeper.WatchedEvent event)
void
updateAuthKeys()
Entry point to seed the localAuthenticationKey
cache 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:
process
in interfaceorg.apache.zookeeper.Watcher
-
updateAuthKeys
public void updateAuthKeys() throws org.apache.zookeeper.KeeperException, InterruptedException
Entry point to seed the localAuthenticationKey
cache from ZooKeeper and set the first watcher for future updates in ZooKeeper.- Throws:
org.apache.zookeeper.KeeperException
InterruptedException
-
-