Class VaultToken

java.lang.Object
org.springframework.vault.support.VaultToken
Direct Known Subclasses:
LoginToken

public class VaultToken extends Object
Value object for a Vault token.
Author:
Mark Paluch
  • Constructor Details

    • VaultToken

      protected VaultToken(char[] token)
  • Method Details

    • of

      public static VaultToken of(String token)
      Create a new VaultToken.
      Parameters:
      token - must not be empty or null.
      Returns:
      the created VaultToken
    • of

      public static VaultToken of(char[] token)
      Create a new VaultToken.
      Parameters:
      token - must not be empty or null.
      Returns:
      the created VaultToken
      Since:
      1.1
    • getToken

      public String getToken()
      Returns:
      the token value.
    • toCharArray

      public char[] toCharArray()
      Returns:
      the token value.
      Since:
      1.1
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object