Class TokenResponse
java.lang.Object
io.helidon.integrations.common.rest.ApiJsonParser
io.helidon.integrations.common.rest.ApiResponse
io.helidon.integrations.common.rest.ApiEntityResponse
io.helidon.integrations.vault.VaultResponse
io.helidon.integrations.vault.auths.token.TokenResponse
- Direct Known Subclasses:
CreateToken.Response
,RenewToken.Response
Response returning a token.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.helidon.integrations.common.rest.ApiEntityResponse
ApiEntityResponse.Builder<B extends ApiEntityResponse.Builder<B,
T, X>, T extends ApiEntityResponse, X> -
Constructor Summary
ModifierConstructorDescriptionprotected
TokenResponse
(ApiEntityResponse.Builder<?, ? extends VaultResponse, JsonObject> builder) -
Method Summary
Methods inherited from class io.helidon.integrations.vault.VaultResponse
vaultRequestId
Methods inherited from class io.helidon.integrations.common.rest.ApiResponse
headers, requestId, status
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonParser
isPresent, stringValue, toBoolean, toBytesBase64, toDouble, toInstant, toInt, toList, toLong, toMap, toObject, toString
-
Constructor Details
-
TokenResponse
-
-
Method Details
-
token
Token that was received.- Returns:
- the token
-
accessor
Accessor.- Returns:
- accessor
-
policies
List of policy names.- Returns:
- policies
-
tokenPolicies
List of token policy names.- Returns:
- token policies
-
metadata
Metadata. When a token is created with metadata attached, it is available through this method.- Returns:
- key/values of metadata
-
entityId
Entity id.- Returns:
- entity id
-
tokenType
Type of the token.- Returns:
- token type
- See Also:
-
orphan
public boolean orphan()Whether the token is orphan (no parent).- Returns:
true
if orphan
-