Class DelegationTokenConfig

    • Constructor Detail

      • DelegationTokenConfig

        public DelegationTokenConfig()
    • Method Detail

      • setTokenLifetime

        public DelegationTokenConfig setTokenLifetime​(long lifetime,
                                                      TimeUnit unit)
        Requests a specific lifetime for the token that is different from the default system lifetime. The lifetime must not exceed the secret key lifetime configured on the servers.
        Parameters:
        lifetime - Token lifetime
        unit - Unit of time for the lifetime
        Returns:
        this
      • getTokenLifetime

        public long getTokenLifetime​(TimeUnit unit)
        The current token lifetime. A value of zero corresponds to using the system configured lifetime.
        Parameters:
        unit - The unit of time the lifetime should be returned in
        Returns:
        Token lifetime in requested unit of time
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object