Class NullKeyMaterialFactory
java.lang.Object
org.jenkinsci.plugins.docker.commons.credentials.KeyMaterialFactory
org.jenkinsci.plugins.docker.commons.impl.NullKeyMaterialFactory
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public final class NullKeyMaterialFactory
extends KeyMaterialFactory
KeyMaterialFactory that does nothing.- Author:
- Kohsuke Kawaguchi
- See Also:
- 
Field SummaryFields inherited from class org.jenkinsci.plugins.docker.commons.credentials.KeyMaterialFactoryNULL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncontextualize(KeyMaterialContext context) Sets theKeyMaterialContextwithin which thisKeyMaterialFactorycanKeyMaterialFactory.materialize()KeyMaterialinstances.Builds the key material environment variables needed to be passed when docker runs, to accessDockerServerCredentialsthat this object was created from.Methods inherited from class org.jenkinsci.plugins.docker.commons.credentials.KeyMaterialFactorycheckContextualized, createSecretsDirectory, getChannel, getContext, materialize, plus
- 
Constructor Details- 
NullKeyMaterialFactorypublic NullKeyMaterialFactory()
 
- 
- 
Method Details- 
materialize2Description copied from class:KeyMaterialFactoryBuilds the key material environment variables needed to be passed when docker runs, to accessDockerServerCredentialsthat this object was created from.When you are done using the credentials, call KeyMaterial2.close(hudson.remoting.VirtualChannel)to allow sensitive information to be removed from the disk.- Overrides:
- materialize2in class- KeyMaterialFactory
- Throws:
- IOException
- InterruptedException
 
- 
contextualizeDescription copied from class:KeyMaterialFactorySets theKeyMaterialContextwithin which thisKeyMaterialFactorycanKeyMaterialFactory.materialize()KeyMaterialinstances. Can only be called once.- Overrides:
- contextualizein class- KeyMaterialFactory
- Parameters:
- context- the- KeyMaterialContext.
- Returns:
- must return this(which is only returned to simplify use via method chaining)
 
 
-