@Restricted(value=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.
NULL| Constructor and Description |
|---|
ServerKeyMaterialFactory(DockerServerCredentials credentials) |
ServerKeyMaterialFactory(String key,
String cert,
String ca) |
| Modifier and Type | Method and Description |
|---|---|
KeyMaterial |
materialize()
Builds the key material environment variables needed to be passed when docker runs, to access
DockerServerCredentials that this object was created from. |
checkContextualized, contextualize, createSecretsDirectory, getContext, pluspublic ServerKeyMaterialFactory(@CheckForNull DockerServerCredentials credentials)
public ServerKeyMaterialFactory(@CheckForNull String key, @CheckForNull String cert, @CheckForNull String ca)
public KeyMaterial materialize() throws IOException, InterruptedException
KeyMaterialFactoryDockerServerCredentials 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.
materialize in class KeyMaterialFactoryIOExceptionInterruptedExceptionCopyright © 2016–2019. All rights reserved.