Class AuthenticationTokenSecretManager


  • public class AuthenticationTokenSecretManager
    extends org.apache.hadoop.security.token.SecretManager<AuthenticationTokenIdentifier>
    Manages an internal list of secret keys used to sign new authentication tokens as they are generated, and to validate existing tokens used for authentication. Each TabletServer, in addition to the Manager, has an instance of this SecretManager so that each can authenticate requests from clients presenting delegation tokens. The Manager will also run an instance of AuthenticationTokenKeyManager which handles generation of new keys and removal of old keys. That class will call the methods here to ensure the in-memory cache is consistent with what is advertised in ZooKeeper.
    • Constructor Detail

      • AuthenticationTokenSecretManager

        public AuthenticationTokenSecretManager​(InstanceId instanceID,
                                                long tokenMaxLifetime)
        Create a new secret manager instance for generating keys.
        Parameters:
        instanceID - Accumulo instance ID
        tokenMaxLifetime - Maximum age (in milliseconds) before a token expires and is no longer valid