Package com.atlassian.secrets.vault
Class DefaultVaultTemplateFactory
java.lang.Object
com.atlassian.secrets.vault.DefaultVaultTemplateFactory
- All Implemented Interfaces:
VaultTemplateFactory
A factory class for creating instances of
VaultTemplate.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.vault.core.VaultTemplategetTemplate(URI endpoint, org.springframework.vault.authentication.ClientAuthentication authentication) Returns a VaultTemplate object with the specified endpoint and authentication.
-
Field Details
-
DEFAULT_CONNECTION_TIMEOUT_MILLIS
public static final int DEFAULT_CONNECTION_TIMEOUT_MILLIS- See Also:
-
DEFAULT_READ_TIMEOUT_MILLIS
public static final int DEFAULT_READ_TIMEOUT_MILLIS- See Also:
-
VAULT_CONNECTION_TIMEOUT_MILLIS_SYSTEM_PROPERTY
- See Also:
-
VAULT_READ_TIMEOUT_MILLIS_SYSTEM_PROPERTY
- See Also:
-
-
Constructor Details
-
DefaultVaultTemplateFactory
public DefaultVaultTemplateFactory()
-
-
Method Details
-
getTemplate
public org.springframework.vault.core.VaultTemplate getTemplate(URI endpoint, org.springframework.vault.authentication.ClientAuthentication authentication) Returns a VaultTemplate object with the specified endpoint and authentication.- Specified by:
getTemplatein interfaceVaultTemplateFactory- Parameters:
endpoint- the URI of the Vault serverauthentication- the client authentication to be used for communication with the Vault server- Returns:
- a VaultTemplate object with the specified endpoint and authentication
-