java.lang.Object
de.stklcode.jvault.connector.model.response.embedded.TokenData

public final class TokenData extends Object
Embedded token information inside Vault response.
Since:
0.1
Author:
Stefan Kalscheuer
  • Constructor Details

    • TokenData

      public TokenData()
  • Method Details

    • getAccessor

      public String getAccessor()
      Returns:
      Token accessor
    • getCreationTime

      public Integer getCreationTime()
      Returns:
      Creation time
    • getCreationTtl

      public Integer getCreationTtl()
      Returns:
      Creation TTL (in seconds)
    • getName

      public String getName()
      Returns:
      Token name
    • getEntityId

      public String getEntityId()
      Returns:
      Entity ID
      Since:
      0.9
    • getExpireTimeString

      public String getExpireTimeString()
      Returns:
      Expire time as raw string value
      Since:
      0.9
    • getExpireTime

      public ZonedDateTime getExpireTime()
      Returns:
      Expire time (parsed)
      Since:
      0.9
    • getExplicitMaxTtl

      public Integer getExplicitMaxTtl()
      Returns:
      Explicit maximum TTL
      Since:
      0.9
    • getId

      public String getId()
      Returns:
      Token ID
    • getIssueTimeString

      public String getIssueTimeString()
      Returns:
      Issue time as raw string value
      Since:
      0.9
    • getIssueTime

      public ZonedDateTime getIssueTime()
      Returns:
      Expire time (parsed)
      Since:
      0.9
    • getType

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

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

      public boolean isOrphan()
      Returns:
      Token is orphan
    • getPath

      public String getPath()
      Returns:
      Token path
    • getPolicies

      public List<String> getPolicies()
      Returns:
      Token policies
      Since:
      0.9
    • isRenewable

      public boolean isRenewable()
      Returns:
      Token is renewable
      Since:
      0.9
    • getTtl

      public Integer getTtl()
      Returns:
      Token TTL (in seconds)
    • getMeta

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