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 Details

    • DefaultKubernetesServiceAccountTokenFileFactory

      public DefaultKubernetesServiceAccountTokenFileFactory()
  • Method Details

    • getKubernetesServiceAccountTokenFile

      public org.springframework.vault.authentication.KubernetesServiceAccountTokenFile getKubernetesServiceAccountTokenFile(String jwtPath)
      Returns a KubernetesServiceAccountTokenFile instance associated with the provided JWT path.
      Specified by:
      getKubernetesServiceAccountTokenFile in interface KubernetesServiceAccountTokenFileFactory
      Parameters:
      jwtPath - the JWT path to be used by the KubernetesServiceAccountTokenFile.
      Returns:
      a KubernetesServiceAccountTokenFile instance.
    • getKubernetesServiceAccountTokenFile

      public org.springframework.vault.authentication.KubernetesServiceAccountTokenFile getKubernetesServiceAccountTokenFile()
      Returns a KubernetesServiceAccountTokenFile instance. This instance will use default Service Account Token path(). See: Vault Kubernetes authentication
      Specified by:
      getKubernetesServiceAccountTokenFile in interface KubernetesServiceAccountTokenFileFactory
      Returns:
      a KubernetesServiceAccountTokenFile instance.