Class AbstractVaultResponse<T>
java.lang.Object
io.micronaut.discovery.vault.config.AbstractVaultResponse<T>
- Type Parameters:
T
- type of the data
- Direct Known Subclasses:
VaultResponseV1
,VaultResponseV2
Vault Response Envelope.
- Since:
- 1.2.0
- Author:
- thiagolocatelli
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetData()
boolean
void
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.
-
Field Details
-
data
-
leaseDuration
-
leaseId
-
requestId
-
wrapInfo
-
renewable
protected boolean renewable -
warnings
-
-
Constructor Details
-
AbstractVaultResponse
public AbstractVaultResponse(T data, Long leaseDuration, String leaseId, String requestId, Map<String, String> wrapInfo, boolean renewable, List<String> warnings) Constructor for AbstractVaultResponse.- Parameters:
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 warnings
-
-
Method Details
-
getSecrets
- Returns:
- The data object
-
getData
- Returns:
- The data
-
setData
Set the data object.- Parameters:
data
- the data object
-
getLeaseDuration
- Returns:
- The token lease duration
-
setLeaseDuration
Set the token lease duration.- Parameters:
leaseDuration
- token lease duration
-
getLeaseId
- Returns:
- The token lease id
-
setLeaseId
Set the token release id.- Parameters:
leaseId
- token release id
-
getRequestId
- Returns:
- The vault request id
-
setRequestId
Set the vault request id.- Parameters:
requestId
- vault request id
-
getWrapInfo
- Returns:
- The wrap info object
-
setWrapInfo
Set the wrap info object.- Parameters:
wrapInfo
- wrap info object
-
isRenewable
public boolean isRenewable()- Returns:
- The flag indicating the vault token is renewable
-
setRenewable
public void setRenewable(boolean renewable) Set the flag indicating the vault token is renewable.- Parameters:
renewable
- flag indicating the vault token is renewable
-
getWarnings
- Returns:
- List of warning
-
setWarnings
Set the list of warnings.- Parameters:
warnings
- list of warning
-