public class KubernetesAuthenticationFactory extends Object
| Constructor and Description |
|---|
KubernetesAuthenticationFactory() |
KubernetesAuthenticationFactory(KubernetesServiceAccountTokenFileFactory kubernetesServiceAccountTokenFileFactory) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.vault.authentication.KubernetesAuthentication |
getAuthentication(VaultParams params)
Retrieves a
KubernetesAuthentication instance based on the provided VaultParams. |
public KubernetesAuthenticationFactory()
public KubernetesAuthenticationFactory(KubernetesServiceAccountTokenFileFactory kubernetesServiceAccountTokenFileFactory)
public org.springframework.vault.authentication.KubernetesAuthentication getAuthentication(VaultParams params) throws SecretStoreException
KubernetesAuthentication instance based on the provided VaultParams.
This method attempts to retrieve the necessary values for role, Kubernetes authentication path, and JWT path, from environment variables.
params - the VaultParams containing the endpoint of Vault server for creating KubernetesAuthentication.KubernetesAuthentication instance based on the provided parameters.SecretStoreException - if there is any problem in retrieving the necessary values or creating the KubernetesAuthentication.Copyright © 2023 Atlassian. All rights reserved.