- 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.String
getAccessor()
long
getCreationTime()
long
getCreationTTL()
java.lang.String
getDisplayName()
long
getExplicitMaxTTL()
java.lang.String
getId()
java.lang.Long
getLastRenewalTime()
int
getNumUses()
java.lang.String
getPath()
java.util.List<java.lang.String>
getPolicies()
long
getTTL()
java.lang.String
getUsername()
boolean
isOrphan()
boolean
isRenewable()
-
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()
-
-