java.lang.Object
de.stklcode.jvault.connector.model.response.VaultDataResponse
All Implemented Interfaces:
VaultResponse
Direct Known Subclasses:
AppRoleResponse, AppRoleSecretResponse, AuthMethodsResponse, AuthResponse, MetadataResponse, RawDataResponse, SecretListResponse, SecretResponse, SecretVersionResponse, TokenResponse, TokenRoleResponse

public abstract class VaultDataResponse extends Object implements VaultResponse
Abstract Vault response with default payload fields.
Since:
0.1
Author:
Stefan Kalscheuer
  • Constructor Details

    • VaultDataResponse

      public VaultDataResponse()
  • Method Details

    • setData

      public abstract void setData(Map<String,Object> data) throws InvalidResponseException
      Set data. To be implemented in the specific subclasses, as data can be of arbitrary structure.
      Parameters:
      data - Raw response data
      Throws:
      InvalidResponseException - on parsing errors
    • getLeaseId

      public final String getLeaseId()
      Returns:
      Lease ID
    • isRenewable

      public final boolean isRenewable()
      Returns:
      Lease is renewable
    • getLeaseDuration

      public final Integer getLeaseDuration()
      Returns:
      Lease duration
    • getWarnings

      public final List<String> getWarnings()
      Returns:
      List of warnings