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 Modifier and Type Field Description protected static String
DOCKER_REGISTRY_HOST_ONLY
-
Fields inherited from class org.jenkinsci.plugins.docker.commons.credentials.KeyMaterialFactory
NULL
-
-
Constructor Summary
Constructors Constructor Description RegistryKeyMaterialFactory(String username, String password, URL endpoint, Launcher launcher, EnvVars env, TaskListener listener, String dockerExecutable)
-
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.protected String
registry()
-
Methods inherited from class org.jenkinsci.plugins.docker.commons.credentials.KeyMaterialFactory
checkContextualized, contextualize, createSecretsDirectory, getContext, plus
-
-
-
-
Field Detail
-
DOCKER_REGISTRY_HOST_ONLY
protected static final String DOCKER_REGISTRY_HOST_ONLY
- See Also:
- Constant Field Values
-
-
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
-
registry
protected String registry()
-
-