Class AuthResponse

java.lang.Object
io.github.jopenlibs.vault.response.VaultResponse
io.github.jopenlibs.vault.response.AuthResponse
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
UnwrapResponse

public class AuthResponse extends VaultResponse
This class is a container for the information returned by Vault in auth backend operations.
See Also:
  • Field Details

    • jsonResponse

      protected JsonObject jsonResponse
  • Constructor Details

    • AuthResponse

      public AuthResponse(RestResponse restResponse, int retries)
      This constructor simply exposes the common base class constructor.
      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

    • getUsername

      public String getUsername()
    • getRenewable

      public Boolean getRenewable()
    • getAuthClientToken

      public String getAuthClientToken()
    • getAuthPolicies

      public List<String> getAuthPolicies()
    • getAuthLeaseDuration

      public long getAuthLeaseDuration()
    • isAuthRenewable

      public boolean isAuthRenewable()
    • getAppId

      public String getAppId()
    • getUserId

      public String getUserId()
    • getNonce

      public String getNonce()
    • getTokenAccessor

      public String getTokenAccessor()