Class UsernamePasswordMultiBinding
java.lang.Object
hudson.model.AbstractDescribableImpl<MultiBinding<C>>
org.jenkinsci.plugins.credentialsbinding.MultiBinding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding
- All Implemented Interfaces:
ExtensionPoint
,Describable<MultiBinding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>>
public class UsernamePasswordMultiBinding
extends MultiBinding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkinsci.plugins.credentialsbinding.MultiBinding
MultiBinding.MultiEnvironment, MultiBinding.NullUnbinder, MultiBinding.Unbinder
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionUsernamePasswordMultiBinding
(String usernameVariable, String passwordVariable, String credentialsId) -
Method Summary
Modifier and TypeMethodDescriptionbind
(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) Sets up bindings for a build.protected Class<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
type()
Type token.Defines keys expected to be set inMultiBinding.MultiEnvironment.getSecretValues()
, particularly any that might be sensitive.Methods inherited from class org.jenkinsci.plugins.credentialsbinding.MultiBinding
getCredentials, getCredentialsId, getDescriptor, variables
-
Constructor Details
-
UsernamePasswordMultiBinding
-
-
Method Details
-
getUsernameVariable
-
getPasswordVariable
-
type
protected Class<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials> type()Description copied from class:MultiBinding
Type token.- Specified by:
type
in classMultiBinding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
-
bind
public MultiBinding.MultiEnvironment bind(@NonNull Run<?, ?> build, @Nullable FilePath workspace, @Nullable Launcher launcher, @NonNull TaskListener listener) throws IOException, InterruptedExceptionDescription copied from class:MultiBinding
Sets up bindings for a build.- Specified by:
bind
in classMultiBinding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
- Parameters:
build
- The build. Cannot be nullworkspace
- The workspace - can be null ifBindingDescriptor.requiresWorkspace()
is false.launcher
- The launcher - can be null ifBindingDescriptor.requiresWorkspace()
is false.listener
- The task listener. Cannot be null.- Returns:
- The configured
MultiBinding.MultiEnvironment
- Throws:
IOException
InterruptedException
-
variables
Description copied from class:MultiBinding
Defines keys expected to be set inMultiBinding.MultiEnvironment.getSecretValues()
, particularly any that might be sensitive.- Overrides:
variables
in classMultiBinding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
- Throws:
CredentialNotFoundException
-