Class RegistryKeyMaterialFactory
java.lang.Object
org.jenkinsci.plugins.docker.commons.credentials.KeyMaterialFactory
org.jenkinsci.plugins.docker.commons.impl.RegistryKeyMaterialFactory
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class RegistryKeyMaterialFactory
extends KeyMaterialFactory
Logs you in to a Docker registry.
-
Field Summary
Fields inherited from class org.jenkinsci.plugins.docker.commons.credentials.KeyMaterialFactory
NULL
-
Constructor Summary
ConstructorDescriptionRegistryKeyMaterialFactory
(String username, String password, URL endpoint, Launcher launcher, EnvVars env, TaskListener listener, String dockerExecutable) -
Method Summary
Modifier and TypeMethodDescriptionBuilds the key material environment variables needed to be passed when docker runs, to accessDockerServerCredentials
that this object was created from.protected String
registry()
Methods inherited from class org.jenkinsci.plugins.docker.commons.credentials.KeyMaterialFactory
checkContextualized, contextualize, createSecretsDirectory, getContext, plus
-
Field Details
-
DOCKER_REGISTRY_HOST_ONLY
- See Also:
-
-
Constructor Details
-
RegistryKeyMaterialFactory
-
-
Method Details
-
materialize
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
-
registry
-