java.lang.Object
de.stklcode.jvault.connector.model.Token
All Implemented Interfaces:
Serializable

public final class Token extends Object implements Serializable
Vault Token metamodel.
Since:
0.4.0, 1.1 implements Serializable
Author:
Stefan Kalscheuer
See Also:
  • Constructor Details

  • Method Details

    • builder

      public static Token.Builder builder()
      Get Token.Builder instance.
      Returns:
      Token Builder.
      Since:
      0.8
    • getId

      public String getId()
      Returns:
      Token ID
    • getType

      public String getType()
      Returns:
      Token type
      Since:
      0.9
    • getDisplayName

      public String getDisplayName()
      Returns:
      Token display name
    • getNoParent

      public Boolean getNoParent()
      Returns:
      Token has no parent
    • getNoDefaultPolicy

      public Boolean getNoDefaultPolicy()
      Returns:
      Token has no default policy
    • getTtl

      public Integer getTtl()
      Returns:
      Time-to-live in seconds
    • getExplicitMaxTtl

      public Integer getExplicitMaxTtl()
      Returns:
      Explicit maximum time-to-live in seconds
      Since:
      0.9
    • getNumUses

      public Integer getNumUses()
      Returns:
      Number of uses
    • getPolicies

      public List<String> getPolicies()
      Returns:
      List of policies
    • getMeta

      public Map<String,String> getMeta()
      Returns:
      Metadata
    • isRenewable

      public Boolean isRenewable()
      Returns:
      Token is renewable
    • getPeriod

      public Integer getPeriod()
      Returns:
      Token period.
      Since:
      0.9
    • getEntityAlias

      public String getEntityAlias()
      Returns:
      Token entity alias.
      Since:
      0.9
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object