Class VaultTokenCredentialBinding
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.credentialsbinding.MultiBinding<C>>
org.jenkinsci.plugins.credentialsbinding.MultiBinding<AbstractVaultTokenCredential>
com.datapipe.jenkins.vault.credentials.VaultTokenCredentialBinding
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.credentialsbinding.MultiBinding<AbstractVaultTokenCredential>>
public class VaultTokenCredentialBinding
extends org.jenkinsci.plugins.credentialsbinding.MultiBinding<AbstractVaultTokenCredential>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkinsci.plugins.credentialsbinding.MultiBinding
org.jenkinsci.plugins.credentialsbinding.MultiBinding.MultiEnvironment, org.jenkinsci.plugins.credentialsbinding.MultiBinding.NullUnbinder, org.jenkinsci.plugins.credentialsbinding.MultiBinding.Unbinder
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionVaultTokenCredentialBinding
(String addrVariable, String tokenVariable, String credentialsId, String vaultAddr) -
Method Summary
Modifier and TypeMethodDescriptionorg.jenkinsci.plugins.credentialsbinding.MultiBinding.MultiEnvironment
bind
(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) void
setNamespaceVariable
(String namespaceVariable) void
setVaultNamespace
(String vaultNamespace) protected Class<AbstractVaultTokenCredential>
type()
Methods inherited from class org.jenkinsci.plugins.credentialsbinding.MultiBinding
getCredentials, getCredentialsId, getDescriptor, variables
-
Constructor Details
-
VaultTokenCredentialBinding
@DataBoundConstructor public VaultTokenCredentialBinding(@Nullable String addrVariable, @Nullable String tokenVariable, String credentialsId, String vaultAddr) - Parameters:
addrVariable
- ifnull
, "VAULT_ADDR" will be used.tokenVariable
- ifnull
, "VAULT_TOKEN" will be used.credentialsId
- credential identifiervaultAddr
- vault address
-
-
Method Details
-
getVaultNamespace
-
setVaultNamespace
-
getNamespaceVariable
-
setNamespaceVariable
-
getAddrVariable
-
getTokenVariable
-
getVaultAddr
-
type
- Specified by:
type
in classorg.jenkinsci.plugins.credentialsbinding.MultiBinding<AbstractVaultTokenCredential>
-
bind
public org.jenkinsci.plugins.credentialsbinding.MultiBinding.MultiEnvironment bind(@NonNull Run<?, ?> build, FilePath workspace, Launcher launcher, @NonNull TaskListener listener) throws IOException, InterruptedException- Specified by:
bind
in classorg.jenkinsci.plugins.credentialsbinding.MultiBinding<AbstractVaultTokenCredential>
- Throws:
IOException
InterruptedException
-
variables
- Overrides:
variables
in classorg.jenkinsci.plugins.credentialsbinding.MultiBinding<AbstractVaultTokenCredential>
-