Class VaultTemplate

java.lang.Object
org.springframework.vault.core.VaultTemplate
All Implemented Interfaces:
DisposableBean, InitializingBean, VaultOperations

public class VaultTemplate extends Object implements InitializingBean, VaultOperations, DisposableBean
This class encapsulates main Vault interaction. VaultTemplate will log into Vault on initialization and use the token throughout the whole lifetime. This is the main entry point to interact with Vault in an authenticated and unauthenticated context.

VaultTemplate allows execution of callback methods. Callbacks can execute requests within a session context and the without a session.

Paths used in this interface (and interfaces accessible from here) are considered relative to the VaultEndpoint. Paths that are fully-qualified URI's can be used to access Vault cluster members in an authenticated context. To prevent unwanted full URI access, make sure to sanitize paths before passing them to this interface.

Author:
Mark Paluch
See Also: