- java.lang.Object
-
- io.github.jopenlibs.vault.response.VaultResponse
-
- io.github.jopenlibs.vault.response.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 Summary
Fields Modifier and Type Field Description protected JsonObjectjsonResponse
-
Constructor Summary
Constructors Constructor Description AuthResponse(RestResponse restResponse, int retries)This constructor simply exposes the common base class constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAppId()java.lang.StringgetAuthClientToken()longgetAuthLeaseDuration()java.util.List<java.lang.String>getAuthPolicies()java.lang.StringgetNonce()java.lang.BooleangetRenewable()java.lang.StringgetTokenAccessor()java.lang.StringgetUserId()java.lang.StringgetUsername()booleanisAuthRenewable()-
Methods inherited from class io.github.jopenlibs.vault.response.VaultResponse
getRestResponse, getRetries
-
-
-
-
Field Detail
-
jsonResponse
protected JsonObject jsonResponse
-
-
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()
-
-