Class AzureKeyVaultSecretContext
java.lang.Object
org.jenkinsci.plugins.azurekeyvaultplugin.credentials.AzureKeyVaultSecretContext
A Key Vault secret being adapted to a credential by an
AzureKeyVaultCredentialsAdapter.
The common tags (jenkinsID, description, scope) have already been resolved.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AzureKeyVaultSecretContext
public AzureKeyVaultSecretContext(@NonNull com.cloudbees.plugins.credentials.CredentialsScope scope, @NonNull String id, @NonNull String description, @NonNull String secretName, @NonNull Map<String, String> tags, @NonNull Supplier<Secret> secret, @NonNull Function<String, Supplier<Secret>> secretLookup)
-
-
Method Details
-
getScope
@NonNull public com.cloudbees.plugins.credentials.CredentialsScope getScope() -
getId
- Returns:
- the Jenkins credential ID, from the
jenkinsIDtag or else the secret name
-
getDescription
-
getSecretName
- Returns:
- the name of the secret in the vault
-
getTag
-
getSecret
- Returns:
- a supplier that reads this secret's value from the vault on every
Supplier.get()
-
getSecret
- Parameters:
secretName- the name of another secret in the same vault, e.g. from apassphrase-idtag- Returns:
- a supplier that reads that secret's value from the vault on every
Supplier.get()
-