- java.lang.Object
-
- io.github.jopenlibs.vault.response.VaultResponse
-
- io.github.jopenlibs.vault.response.LogicalResponse
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
DatabaseResponse,MountResponse,PkiResponse
public class LogicalResponse extends VaultResponse
This class is a container for the information returned by Vault in logical API operations (e.g. read, write).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LogicalResponse(RestResponse restResponse, int retries, Logical.logicalOperations operation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>getData()JsonObjectgetDataObject()java.lang.LonggetLeaseDuration()java.lang.StringgetLeaseId()java.util.List<java.lang.String>getListData()java.lang.BooleangetRenewable()-
Methods inherited from class io.github.jopenlibs.vault.response.VaultResponse
getRestResponse, getRetries
-
-
-
-
Constructor Detail
-
LogicalResponse
public LogicalResponse(RestResponse restResponse, int retries, Logical.logicalOperations operation)
- Parameters:
restResponse- The raw HTTP response from Vault.retries- The number of retry attempts that occurred during the API call (can be zero).operation- The operation requested.
-
-
Method Detail
-
getData
public java.util.Map<java.lang.String,java.lang.String> getData()
-
getListData
public java.util.List<java.lang.String> getListData()
-
getDataObject
public JsonObject getDataObject()
-
getLeaseId
public java.lang.String getLeaseId()
-
getRenewable
public java.lang.Boolean getRenewable()
-
getLeaseDuration
public java.lang.Long getLeaseDuration()
-
-