Class KeyMaterial2
java.lang.Object
org.jenkinsci.plugins.docker.commons.credentials.KeyMaterial2
- All Implemented Interfaces:
- Serializable
Represents a locally extracted credentials information.
 
 Implementations of this class are created by their corresponding KeyMaterialFactory
 implementations. Be sure to call close(hudson.remoting.VirtualChannel) when finished.
- Author:
- Kohsuke Kawaguchi
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidclose(hudson.remoting.VirtualChannel channel) Deletes the key materials from the file system.final EnvVarsenv()Get the environment variables needed to be passed when docker runs, to accessDockerServerCredentialsthat this object was created from.
- 
Field Details- 
NULLKeyMaterialthat does nothing.
 
- 
- 
Constructor Details- 
KeyMaterial2
 
- 
- 
Method Details- 
envGet the environment variables needed to be passed when docker runs, to accessDockerServerCredentialsthat this object was created from.
- 
closepublic abstract void close(hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException Deletes the key materials from the file system. As key materials are copied into files every timeKeyMaterialFactoryis created, it must be also cleaned up each time.- Parameters:
- channel- to restore pathnames
- Throws:
- IOException
- InterruptedException
 
 
-