Class VaultResponse

java.lang.Object
io.github.jopenlibs.vault.response.VaultResponse
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AuthResponse, LogicalResponse, LookupResponse, SealResponse, WrapResponse

public class VaultResponse extends Object implements Serializable

VaultResponse is a common base class for the response objects returned by all API methods. It contains the bare minimum of information common to all Vault responses (e.g. the raw HTTP response, the number of retry attempts if any). API methods which return additional information will use more specialized subclasses inheriting from VaultResponse.

See Also:
  • Constructor Details

    • VaultResponse

      public VaultResponse(RestResponse restResponse, int retries)
      Parameters:
      restResponse - The raw HTTP response from Vault.
      retries - The number of retry attempts that occurred during the API call (can be zero).
  • Method Details

    • getRestResponse

      public RestResponse getRestResponse()
    • getRetries

      public int getRetries()