Class KeyVaultCredentialsLoader
java.lang.Object
org.jenkinsci.plugins.azurekeyvaultplugin.provider.KeyVaultCredentialsLoader
Turns the secrets in a Key Vault into Jenkins credentials, shared by the global and folder providers.
-
Method Summary
Modifier and TypeMethodDescriptionLists every secret in the vault and maps the ones Jenkins understands to credentials, keyed by credential ID.static StringnormalizeKeyVaultURL(String keyVaultURL)
-
Method Details
-
load
public static Map<String,com.cloudbees.plugins.credentials.common.IdCredentials> load(com.azure.security.keyvault.secrets.SecretClient client, String keyVaultURL) Lists every secret in the vault and maps the ones Jenkins understands to credentials, keyed by credential ID.- Parameters:
keyVaultURL- the vault URL, with a trailing slash (seenormalizeKeyVaultURL(String))
-
normalizeKeyVaultURL
- Returns:
- the URL with a trailing slash, or
nullif it is blank
-