Class TokenRoleResponse
- java.lang.Object
-
- de.stklcode.jvault.connector.model.response.VaultDataResponse
-
- de.stklcode.jvault.connector.model.response.TokenRoleResponse
-
- All Implemented Interfaces:
VaultResponse
public final class TokenRoleResponse extends VaultDataResponse
Vault response from token role lookup providing Token information inTokenData
field.- Since:
- 0.9
- Author:
- Stefan Kalscheuer
-
-
Constructor Summary
Constructors Constructor Description TokenRoleResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenRole
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 toTokenRole
.- Specified by:
setData
in classVaultDataResponse
- Parameters:
data
- Raw response data- Throws:
InvalidResponseException
- on parsing errors
-
getData
public TokenRole getData()
- Returns:
- TokenRole data
-
-