Class AuthResponse

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Field Detail

    • Constructor Detail

      • 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 Detail

      • getUsername

        public java.lang.String getUsername()
      • getRenewable

        public java.lang.Boolean getRenewable()
      • getAuthClientToken

        public java.lang.String getAuthClientToken()
      • getAuthPolicies

        public java.util.List<java.lang.String> getAuthPolicies()
      • getAuthLeaseDuration

        public long getAuthLeaseDuration()
      • isAuthRenewable

        public boolean isAuthRenewable()
      • getAppId

        public java.lang.String getAppId()
      • getUserId

        public java.lang.String getUserId()
      • getNonce

        public java.lang.String getNonce()
      • getTokenAccessor

        public java.lang.String getTokenAccessor()