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
public abstract class VaultDataResponse extends Object implements VaultResponse
Abstract Vault response with default payload fields.- Since:
- 0.1
- Author:
- Stefan Kalscheuer
-
-
Constructor Summary
Constructors Constructor Description VaultDataResponse()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Integer
getLeaseDuration()
String
getLeaseId()
List<String>
getWarnings()
boolean
isRenewable()
abstract void
setData(Map<String,Object> data)
Set data.
-
-
-
Method Detail
-
setData
public abstract void setData(Map<String,Object> data) throws InvalidResponseException
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
public final String getLeaseId()
- Returns:
- Lease ID
-
isRenewable
public final boolean isRenewable()
- Returns:
- Lease is renewable
-
getLeaseDuration
public final Integer getLeaseDuration()
- Returns:
- Lease duration
-
-