T
- type for data
response.public class VaultResponseSupport<T> extends Object
Constructor and Description |
---|
VaultResponseSupport() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAuth() |
T |
getData() |
long |
getLeaseDuration() |
String |
getLeaseId() |
Map<String,Object> |
getMetadata() |
String |
getRequestId() |
Map<String,Object> |
getRequiredAuth() |
T |
getRequiredData() |
List<String> |
getWarnings() |
Map<String,String> |
getWrapInfo() |
boolean |
isRenewable() |
void |
setAuth(Map<String,Object> auth) |
void |
setData(T data) |
void |
setLeaseDuration(long leaseDuration) |
void |
setLeaseId(String leaseId) |
void |
setMetadata(Map<String,Object> metadata) |
void |
setRenewable(boolean renewable) |
void |
setRequestId(String requestId) |
void |
setWarnings(List<String> warnings) |
void |
setWrapInfo(Map<String,String> wrapInfo) |
public Map<String,Object> getRequiredAuth()
IllegalStateException
- if auth
is null.public void setAuth(@Nullable Map<String,Object> auth)
auth
- the authentication payload.public T getRequiredData()
IllegalStateException
- if data
is null.public void setMetadata(@Nullable Map<String,Object> metadata)
metadata
- request metadata.public long getLeaseDuration()
public void setLeaseDuration(long leaseDuration)
leaseDuration
- the lease duration.public boolean isRenewable()
public void setRenewable(boolean renewable)
renewable
- true if the lease is renewable.public void setWrapInfo(@Nullable Map<String,String> wrapInfo)
wrapInfo
- response wrapping details.public void setRequestId(@Nullable String requestId)
requestId
- the request Id.Copyright © 2016–2020 Pivotal Software, Inc.. All rights reserved.