- 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 JsonObject
jsonResponse
-
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.String
getAppId()
java.lang.String
getAuthClientToken()
long
getAuthLeaseDuration()
java.util.List<java.lang.String>
getAuthPolicies()
java.lang.String
getNonce()
java.lang.Boolean
getRenewable()
java.lang.String
getTokenAccessor()
java.lang.String
getUserId()
java.lang.String
getUsername()
boolean
isAuthRenewable()
-
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()
-
-