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 StringgetAccessor()IntegergetCreationTime()IntegergetCreationTtl()StringgetEntityId()ZonedDateTimegetExpireTime()StringgetExpireTimeString()IntegergetExplicitMaxTtl()StringgetId()ZonedDateTimegetIssueTime()StringgetIssueTimeString()Map<String,Object>getMeta()StringgetName()IntegergetNumUses()StringgetPath()List<String>getPolicies()IntegergetTtl()StringgetType()booleanisOrphan()booleanisRenewable()
-
-
-
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)
-
-