Class TokenResponse
- java.lang.Object
-
- de.stklcode.jvault.connector.model.response.VaultDataResponse
-
- de.stklcode.jvault.connector.model.response.TokenResponse
-
- All Implemented Interfaces:
VaultResponse
public final class TokenResponse extends VaultDataResponse
Vault response from token lookup providing Token information inTokenData
field.- Since:
- 0.1
- Author:
- Stefan Kalscheuer
-
-
Constructor Summary
Constructors Constructor Description TokenResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenData
getData()
void
setData(Map<String,Object> data)
Set data.-
Methods inherited from class de.stklcode.jvault.connector.model.response.VaultDataResponse
getLeaseDuration, getLeaseId, getWarnings, isRenewable
-
-
-
-
Method Detail
-
setData
public void setData(Map<String,Object> data) throws InvalidResponseException
Set data. Parses response data map toTokenData
.- Specified by:
setData
in classVaultDataResponse
- Parameters:
data
- Raw response data- Throws:
InvalidResponseException
- on parsing errors
-
getData
public TokenData getData()
- Returns:
- Token data
-
-