Class TokenData
- 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 Summary
Constructors Constructor Description TokenData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessor()
Integer
getCreationTime()
Integer
getCreationTtl()
String
getEntityId()
ZonedDateTime
getExpireTime()
String
getExpireTimeString()
Integer
getExplicitMaxTtl()
String
getId()
ZonedDateTime
getIssueTime()
String
getIssueTimeString()
Map<String,Object>
getMeta()
String
getName()
Integer
getNumUses()
String
getPath()
List<String>
getPolicies()
Integer
getTtl()
String
getType()
boolean
isOrphan()
boolean
isRenewable()
-
-
-
Method Detail
-
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
-
isRenewable
public boolean isRenewable()
- Returns:
- Token is renewable
- Since:
- 0.9
-
getTtl
public Integer getTtl()
- Returns:
- Token TTL (in seconds)
-
-