- java.lang.Object
-
- io.github.jopenlibs.vault.response.VaultResponse
-
- io.github.jopenlibs.vault.response.LookupResponse
-
- All Implemented Interfaces:
java.io.Serializable
public class LookupResponse extends VaultResponse
This class is a container for the information returned by Vault in lookup operations on auth backends.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LookupResponse(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.StringgetAccessor()longgetCreationTime()longgetCreationTTL()java.lang.StringgetDisplayName()longgetExplicitMaxTTL()java.lang.StringgetId()java.lang.LonggetLastRenewalTime()intgetNumUses()java.lang.StringgetPath()java.util.List<java.lang.String>getPolicies()longgetTTL()java.lang.StringgetUsername()booleanisOrphan()booleanisRenewable()-
Methods inherited from class io.github.jopenlibs.vault.response.VaultResponse
getRestResponse, getRetries
-
-
-
-
Constructor Detail
-
LookupResponse
public LookupResponse(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
-
getAccessor
public java.lang.String getAccessor()
-
getCreationTime
public long getCreationTime()
-
getCreationTTL
public long getCreationTTL()
-
getDisplayName
public java.lang.String getDisplayName()
-
getExplicitMaxTTL
public long getExplicitMaxTTL()
-
getId
public java.lang.String getId()
-
getLastRenewalTime
public java.lang.Long getLastRenewalTime()
-
getNumUses
public int getNumUses()
-
isOrphan
public boolean isOrphan()
-
getPath
public java.lang.String getPath()
-
getPolicies
public java.util.List<java.lang.String> getPolicies()
-
isRenewable
public boolean isRenewable()
-
getTTL
public long getTTL()
-
getUsername
public java.lang.String getUsername()
-
-