Class LogicalResponse

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    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 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()
      • getDataObject

        public JsonObject getDataObject()
      • getLeaseId

        public java.lang.String getLeaseId()
      • getRenewable

        public java.lang.Boolean getRenewable()
      • getLeaseDuration

        public java.lang.Long getLeaseDuration()