Class 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.
    • Method Detail

      • process

        public void process​(org.apache.zookeeper.WatchedEvent event)
        Specified by:
        process in interface org.apache.zookeeper.Watcher
      • updateAuthKeys

        public void updateAuthKeys()
                            throws org.apache.zookeeper.KeeperException,
                                   InterruptedException
        Entry point to seed the local AuthenticationKey cache from ZooKeeper and set the first watcher for future updates in ZooKeeper.
        Throws:
        org.apache.zookeeper.KeeperException
        InterruptedException