Class AuthenticationTokenKeyManager

  • All Implemented Interfaces:
    Runnable

    public class AuthenticationTokenKeyManager
    extends Daemon
    Service that handles generation of the secret key used to create delegation tokens.
    • Constructor Detail

      • AuthenticationTokenKeyManager

        public AuthenticationTokenKeyManager​(AuthenticationTokenSecretManager mgr,
                                             ZooAuthenticationKeyDistributor dist,
                                             long keyUpdateInterval,
                                             long tokenMaxLifetime)
        Construct the key manager which will generate new AuthenticationKeys to generate and verify delegation tokens
        Parameters:
        mgr - The SecretManager in use
        dist - The implementation to distribute AuthenticationKeys to ZooKeeper
        keyUpdateInterval - The frequency, in milliseconds, that new AuthenticationKeys are created
        tokenMaxLifetime - The lifetime, in milliseconds, of generated AuthenticationKeys (and subsequently delegation tokens).
    • Method Detail

      • isInitialized

        public boolean isInitialized()
      • gracefulStop

        public void gracefulStop()
      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread