Class ZooAuthenticationKeyWatcher
java.lang.Object
org.apache.accumulo.server.security.delegation.ZooAuthenticationKeyWatcher
- All Implemented Interfaces:
org.apache.zookeeper.Watcher
Watch ZooKeeper to notice changes in the published keys so that authenticate can properly occur
using delegation tokens.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.zookeeper.Watcher
org.apache.zookeeper.Watcher.Event, org.apache.zookeeper.Watcher.WatcherType
-
Constructor Summary
ConstructorsConstructorDescriptionZooAuthenticationKeyWatcher
(AuthenticationTokenSecretManager secretManager, ZooReader zk, String baseNode) -
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(org.apache.zookeeper.WatchedEvent event) void
Entry point to seed the localAuthenticationKey
cache from ZooKeeper and set the first watcher for future updates in ZooKeeper.
-
Constructor Details
-
ZooAuthenticationKeyWatcher
public ZooAuthenticationKeyWatcher(AuthenticationTokenSecretManager secretManager, ZooReader zk, String baseNode)
-
-
Method Details
-
process
public void process(org.apache.zookeeper.WatchedEvent event) - Specified by:
process
in interfaceorg.apache.zookeeper.Watcher
-
updateAuthKeys
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
-