T - type of the data@Immutable @Introspected public abstract class AbstractVaultResponse<T> extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected T | data | 
| protected Long | leaseDuration | 
| protected String | leaseId | 
| protected boolean | renewable | 
| protected String | requestId | 
| protected List<String> | warnings | 
| protected Map<String,String> | wrapInfo | 
| Constructor and Description | 
|---|
| AbstractVaultResponse(T data,
                     Long leaseDuration,
                     String leaseId,
                     String requestId,
                     Map<String,String> wrapInfo,
                     boolean renewable,
                     List<String> warnings)Constructor for AbstractVaultResponse. | 
| Modifier and Type | Method and Description | 
|---|---|
| T | getData() | 
| Long | getLeaseDuration() | 
| String | getLeaseId() | 
| String | getRequestId() | 
| abstract Map<String,Object> | getSecrets() | 
| List<String> | getWarnings() | 
| Map<String,String> | getWrapInfo() | 
| boolean | isRenewable() | 
| void | setData(T data)Set the data object. | 
| void | setLeaseDuration(Long leaseDuration)Set the token lease duration. | 
| void | setLeaseId(String leaseId)Set the token release id. | 
| void | setRenewable(boolean renewable)Set the flag indicating the vault token is renewable. | 
| void | setRequestId(String requestId)Set the vault request id. | 
| void | setWarnings(List<String> warnings)Set the list of warnings. | 
| void | setWrapInfo(Map<String,String> wrapInfo)Set the wrap info object. | 
protected T data
protected Long leaseDuration
protected String leaseId
protected String requestId
protected boolean renewable
public AbstractVaultResponse(T data, Long leaseDuration, String leaseId, String requestId, Map<String,String> wrapInfo, boolean renewable, List<String> warnings)
data - The data objectleaseDuration - The token lease durationleaseId - The token lease idrequestId - The vault request idwrapInfo - The wrap info objectrenewable - The flag indicating the vault token is renewablewarnings - The list of warningspublic T getData()
public void setData(T data)
data - the data objectpublic Long getLeaseDuration()
public void setLeaseDuration(Long leaseDuration)
leaseDuration - token lease durationpublic String getLeaseId()
public void setLeaseId(String leaseId)
leaseId - token release idpublic String getRequestId()
public void setRequestId(String requestId)
requestId - vault request idpublic void setWrapInfo(Map<String,String> wrapInfo)
wrapInfo - wrap info objectpublic boolean isRenewable()
public void setRenewable(boolean renewable)
renewable - flag indicating the vault token is renewable