Module de.stklcode.jvault.connector
Class VaultDataResponse
java.lang.Object
de.stklcode.jvault.connector.model.response.VaultDataResponse
- All Implemented Interfaces:
VaultResponse
- Direct Known Subclasses:
AppRoleResponse
,AppRoleSecretResponse
,AuthMethodsResponse
,AuthResponse
,MetadataResponse
,RawDataResponse
,SecretListResponse
,SecretResponse
,SecretVersionResponse
,TokenResponse
,TokenRoleResponse
Abstract Vault response with default payload fields.
- Since:
- 0.1
- Author:
- Stefan Kalscheuer
-
Constructor Details
-
VaultDataResponse
public VaultDataResponse()
-
-
Method Details
-
setData
Set data. To be implemented in the specific subclasses, as data can be of arbitrary structure.- Parameters:
data
- Raw response data- Throws:
InvalidResponseException
- on parsing errors
-
getLeaseId
- Returns:
- Lease ID
-
isRenewable
public final boolean isRenewable()- Returns:
- Lease is renewable
-
getLeaseDuration
- Returns:
- Lease duration
-
getWarnings
- Returns:
- List of warnings
-