Class KeyMaterial
java.lang.Object
org.jenkinsci.plugins.docker.commons.credentials.KeyMaterial
- All Implemented Interfaces:
Closeable
,Serializable
,AutoCloseable
Represents a locally extracted credentials information.
Implementations of this class are created by their corresponding KeyMaterialFactory
implementations. Be sure to call close()
when finished using a KeyMaterial
instance.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
close()
Deletes the key materials from the file system.env()
Get the environment variables needed to be passed when docker runs, to accessDockerServerCredentials
that this object was created from.
-
Field Details
-
NULL
KeyMaterial
that does nothing.
-
-
Constructor Details
-
KeyMaterial
-
-
Method Details
-
env
Get the environment variables needed to be passed when docker runs, to accessDockerServerCredentials
that this object was created from. -
close
Deletes the key materials from the file system. As key materials are copied into files every timeKeyMaterialFactory
is created, it must be also cleaned up each time.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-