Class Token


  • public final class Token
    extends Object
    Vault Token metamodel.
    Since:
    0.4.0
    Author:
    Stefan Kalscheuer
    • Constructor Detail

      • Token

        public Token()
        Construct empty Token object.
    • Method Detail

      • 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
      • 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