public interface SecretVariables extends SecretVariablesProvider
Methods for adding and accessing secrets.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
fromSecretsProvider(Provider<java.util.Map<String, SimpleSecureString>> secretsProvider)Use secrets from another provider of secrets. |
|
public void |
fromSecretsProvider(SecretVariablesProvider secretsProvider)Use secrets from another provider of secrets. |
|
public void |
secretProperty(String key, String propertyName)Sets a secret variable that will be injected into the environment at run time. |
|
public void |
secretPropertyOrBlank(String key, String propertyName)Sets a secret variable that will be injected into the environment at run time. |
|
public void |
secretVariable(String key, Object value)Sets a secret variable that will be injected into the environment at run time. |
| Methods inherited from class | Name |
|---|---|
interface SecretVariablesProvider |
getSecretVariables |
Use secrets from another provider of secrets.
secretsProvider - Provider of secrets.Use secrets from another provider of secrets.
secretsProvider - An existing secrets provider.Sets a secret variable that will be injected into the environment at run time.
key - KeypropertyName - Name of property
If the property cannot be resolved, no action will be taken and a warning will be logged.Sets a secret variable that will be injected into the environment at run time.
key - KeypropertyName - Name of property
If the property cannot be resolved, it will be set to a blank string.