Class DefaultKubernetesServiceAccountTokenFileFactory
java.lang.Object
com.atlassian.secrets.vault.auth.kubernetes.DefaultKubernetesServiceAccountTokenFileFactory
- All Implemented Interfaces:
KubernetesServiceAccountTokenFileFactory
public class DefaultKubernetesServiceAccountTokenFileFactory
extends Object
implements KubernetesServiceAccountTokenFileFactory
A default class for creating
KubernetesServiceAccountTokenFile instances.
This factory provides methods to retrieve instances with or without a provided JWT path.- Since:
- 3.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.vault.authentication.KubernetesServiceAccountTokenFileReturns aKubernetesServiceAccountTokenFileinstance.org.springframework.vault.authentication.KubernetesServiceAccountTokenFileReturns aKubernetesServiceAccountTokenFileinstance associated with the provided JWT path.
-
Constructor Details
-
DefaultKubernetesServiceAccountTokenFileFactory
public DefaultKubernetesServiceAccountTokenFileFactory()
-
-
Method Details
-
getKubernetesServiceAccountTokenFile
public org.springframework.vault.authentication.KubernetesServiceAccountTokenFile getKubernetesServiceAccountTokenFile(String jwtPath) Returns aKubernetesServiceAccountTokenFileinstance associated with the provided JWT path.- Specified by:
getKubernetesServiceAccountTokenFilein interfaceKubernetesServiceAccountTokenFileFactory- Parameters:
jwtPath- the JWT path to be used by theKubernetesServiceAccountTokenFile.- Returns:
- a
KubernetesServiceAccountTokenFileinstance.
-
getKubernetesServiceAccountTokenFile
public org.springframework.vault.authentication.KubernetesServiceAccountTokenFile getKubernetesServiceAccountTokenFile()Returns aKubernetesServiceAccountTokenFileinstance. This instance will use default Service Account Token path(). See: Vault Kubernetes authentication- Specified by:
getKubernetesServiceAccountTokenFilein interfaceKubernetesServiceAccountTokenFileFactory- Returns:
- a
KubernetesServiceAccountTokenFileinstance.
-