public class SecretResponse extends VaultDataResponse
| Constructor and Description |
|---|
SecretResponse() |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(String key)
Get a single value for given key.
|
<T> T |
get(String key,
Class<T> type)
Get response parsed as JSON.
|
Map<String,Object> |
getData()
Get complete data object.
|
String |
getValue()
Deprecated.
Deprecated artifact, will be removed at latest at v1.0.0
|
<T> T |
getValue(Class<T> type)
Deprecated.
Deprecated artifact, will be removed at latest at v1.0.0
|
void |
setData(Map<String,Object> data)
Set data.
|
getLeaseDuration, getLeaseId, getWarnings, isRenewablepublic final void setData(Map<String,Object> data) throws InvalidResponseException
VaultDataResponsesetData in class VaultDataResponsedata - Raw response dataInvalidResponseException - on parsing errorspublic final Map<String,Object> getData()
public final Object get(String key)
key - the keynull if absent@Deprecated public final String getValue()
@Deprecated public final <T> T getValue(Class<T> type) throws InvalidResponseException
T - Class to parse responsetype - Class to parse responseInvalidResponseException - on parsing errorpublic final <T> T get(String key, Class<T> type) throws InvalidResponseException
T - Class to parse responsekey - the keytype - Class to parse responsenull if absentInvalidResponseException - on parsing errorCopyright © 2016–2017. All rights reserved.