Class FileBinding
java.lang.Object
hudson.model.AbstractDescribableImpl<MultiBinding<C>>
org.jenkinsci.plugins.credentialsbinding.MultiBinding<C>
org.jenkinsci.plugins.credentialsbinding.Binding<C>
org.jenkinsci.plugins.credentialsbinding.impl.AbstractOnDiskBinding<org.jenkinsci.plugins.plaincredentials.FileCredentials>
org.jenkinsci.plugins.credentialsbinding.impl.FileBinding
- All Implemented Interfaces:
ExtensionPoint
,Describable<MultiBinding<org.jenkinsci.plugins.plaincredentials.FileCredentials>>
public class FileBinding
extends AbstractOnDiskBinding<org.jenkinsci.plugins.plaincredentials.FileCredentials>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkinsci.plugins.credentialsbinding.Binding
Binding.Environment, Binding.SingleEnvironment
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
-
Method Summary
Methods inherited from class org.jenkinsci.plugins.credentialsbinding.impl.AbstractOnDiskBinding
bindSingle
Methods inherited from class org.jenkinsci.plugins.credentialsbinding.Binding
bind, bind, getCredentials, getVariable, variables
Methods inherited from class org.jenkinsci.plugins.credentialsbinding.MultiBinding
getCredentials, getCredentialsId, getDescriptor, variables
-
Constructor Details
-
FileBinding
-
-
Method Details
-
type
Description copied from class:MultiBinding
Type token.- Specified by:
type
in classMultiBinding<org.jenkinsci.plugins.plaincredentials.FileCredentials>
-
write
protected final FilePath write(org.jenkinsci.plugins.plaincredentials.FileCredentials credentials, FilePath dir) throws IOException, InterruptedException Description copied from class:AbstractOnDiskBinding
Writes credentials under a given temporary directory, and returns their path (will be bound to the variable).- Specified by:
write
in classAbstractOnDiskBinding<org.jenkinsci.plugins.plaincredentials.FileCredentials>
- Parameters:
credentials
- the credentials to binddir
- a temporary directory where credentials should be written. You can assume it has already been created, with secure permissions.- Returns:
- the path to the on-disk credentials, to be bound to the variable
- Throws:
IOException
InterruptedException
-