Class ServerKeyMaterialFactory
- java.lang.Object
-
- org.jenkinsci.plugins.docker.commons.credentials.KeyMaterialFactory
-
- org.jenkinsci.plugins.docker.commons.impl.ServerKeyMaterialFactory
-
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class ServerKeyMaterialFactory extends KeyMaterialFactory
KeyMaterialFactory
for talking to docker daemon.Key/certificates have to be laid out in a specific file names in this directory to make docker(1) happy.
- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
-
Fields inherited from class org.jenkinsci.plugins.docker.commons.credentials.KeyMaterialFactory
NULL
-
-
Constructor Summary
Constructors Constructor Description ServerKeyMaterialFactory(String key, String cert, String ca)
ServerKeyMaterialFactory(DockerServerCredentials credentials)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyMaterial
materialize()
Builds the key material environment variables needed to be passed when docker runs, to accessDockerServerCredentials
that this object was created from.-
Methods inherited from class org.jenkinsci.plugins.docker.commons.credentials.KeyMaterialFactory
checkContextualized, contextualize, createSecretsDirectory, getContext, plus
-
-
-
-
Constructor Detail
-
ServerKeyMaterialFactory
public ServerKeyMaterialFactory(@CheckForNull DockerServerCredentials credentials)
-
-
Method Detail
-
materialize
public KeyMaterial materialize() throws IOException, InterruptedException
Description copied from class:KeyMaterialFactory
Builds the key material environment variables needed to be passed when docker runs, to accessDockerServerCredentials
that this object was created from.When you are done using the credentials, call
KeyMaterial.close()
to allow sensitive information to be removed from the disk.- Specified by:
materialize
in classKeyMaterialFactory
- Throws:
IOException
InterruptedException
-
-