Class TokenAuth

java.lang.Object
codes.grow.packages.vault.TokenAuth
All Implemented Interfaces:
AuthMethod

public final class TokenAuth extends Object implements AuthMethod
Uses an existing token (X-Vault-Token); login checks it with lookup-self.
  • Constructor Details

    • TokenAuth

      public TokenAuth(String token)
      Creates the method.
      Parameters:
      token - the token
      Throws:
      ConfigException - when the token is empty
    • TokenAuth

      public TokenAuth(Secret token)
      Creates the method.
      Parameters:
      token - the token
      Throws:
      ConfigException - when the token is empty
  • Method Details