Package org.springframework.vault.core
Class VaultTokenTemplate
java.lang.Object
org.springframework.vault.core.VaultTokenTemplate
- All Implemented Interfaces:
VaultTokenOperations
Default implementation of
VaultTokenOperations.- Author:
- Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionVaultTokenTemplate(VaultOperations vaultOperations) Create a newVaultTokenTemplatewith the givenVaultOperations. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a new token.create(VaultTokenRequest request) Create a new token for the givenVaultTokenRequest.Create a new orphan token.createOrphan(VaultTokenRequest request) Create a new orphan token for the givenVaultTokenRequest.renew(VaultToken vaultToken) Renew aVaultToken.voidrevoke(VaultToken vaultToken) Revoke aVaultToken.voidrevokeOrphan(VaultToken vaultToken) Revoke aVaultTokenbut not its child tokens.
-
Constructor Details
-
VaultTokenTemplate
Create a newVaultTokenTemplatewith the givenVaultOperations.- Parameters:
vaultOperations- must not be null.
-
-
Method Details
-
create
Description copied from interface:VaultTokenOperationsCreate a new token.- Specified by:
createin interfaceVaultTokenOperations- Returns:
- a
VaultTokenResponse - See Also:
-
create
Description copied from interface:VaultTokenOperationsCreate a new token for the givenVaultTokenRequest.- Specified by:
createin interfaceVaultTokenOperations- Parameters:
request- must not be null.- Returns:
- a
VaultTokenResponse - See Also:
-
createOrphan
Description copied from interface:VaultTokenOperationsCreate a new orphan token.- Specified by:
createOrphanin interfaceVaultTokenOperations- Returns:
- a
VaultTokenResponse - See Also:
-
createOrphan
Description copied from interface:VaultTokenOperationsCreate a new orphan token for the givenVaultTokenRequest.- Specified by:
createOrphanin interfaceVaultTokenOperations- Parameters:
request- must not be null.- Returns:
- a
VaultTokenResponse - See Also:
-
renew
Description copied from interface:VaultTokenOperationsRenew aVaultToken.- Specified by:
renewin interfaceVaultTokenOperations- Parameters:
vaultToken- must not be null.- Returns:
- a
VaultTokenResponse - See Also:
-
revoke
Description copied from interface:VaultTokenOperationsRevoke aVaultToken.- Specified by:
revokein interfaceVaultTokenOperations- Parameters:
vaultToken- must not be null.- See Also:
-
revokeOrphan
Description copied from interface:VaultTokenOperationsRevoke aVaultTokenbut not its child tokens.- Specified by:
revokeOrphanin interfaceVaultTokenOperations- Parameters:
vaultToken- must not be null.- See Also:
-