public abstract class KeyMaterial extends Object implements Closeable, Serializable
Implementations of this class are created by their corresponding KeyMaterialFactory
implementations. Be sure to call close() when finished using a KeyMaterial
instance.
DockerServerEndpoint.newKeyMaterialFactory(hudson.model.AbstractBuild),
DockerRegistryEndpoint.newKeyMaterialFactory(hudson.model.AbstractBuild),
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static KeyMaterial |
NULL
KeyMaterial that does nothing. |
| Modifier | Constructor and Description |
|---|---|
protected |
KeyMaterial(hudson.EnvVars envVars) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Deletes the key materials from the file system.
|
hudson.EnvVars |
env()
Get the environment variables needed to be passed when docker runs, to access
DockerServerCredentials that this object was created from. |
public static final KeyMaterial NULL
KeyMaterial that does nothing.public hudson.EnvVars env()
DockerServerCredentials that this object was created from.public abstract void close()
throws IOException
KeyMaterialFactory is created, it must be also cleaned up each time.close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2016–2019. All rights reserved.