java.lang.Object
de.stklcode.jvault.connector.model.response.embedded.TokenData
All Implemented Interfaces:
Serializable

public final class TokenData extends Object implements Serializable
Embedded token information inside Vault response.
Since:
0.1, 1.1 implements Serializable
Author:
Stefan Kalscheuer
See Also:
  • 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

      @Deprecated(since="1.2", forRemoval=true) public String getExpireTimeString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Method left for backwards compatibility only. Use getExpireTime() instead.
      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

      @Deprecated(since="1.2", forRemoval=true) public String getIssueTimeString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Method left for backwards compatibility only. Use getIssueTime() instead.
      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
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object