@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class CompositeKeyMaterialFactory extends KeyMaterialFactory
KeyMaterialFactorys into one.NULL| Constructor and Description |
|---|
CompositeKeyMaterialFactory(KeyMaterialFactory... factories) |
| Modifier and Type | Method and Description |
|---|---|
KeyMaterialFactory |
contextualize(KeyMaterialContext context)
Sets the
KeyMaterialContext within which this KeyMaterialFactory can KeyMaterialFactory.materialize()
KeyMaterial instances. |
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, createSecretsDirectory, getContext, pluspublic CompositeKeyMaterialFactory(KeyMaterialFactory... factories)
public KeyMaterialFactory contextualize(@Nonnull KeyMaterialContext context)
KeyMaterialFactoryKeyMaterialContext within which this KeyMaterialFactory can KeyMaterialFactory.materialize()
KeyMaterial instances. Can only be called once.contextualize in class KeyMaterialFactorycontext - the KeyMaterialContext.this (which is only returned to simplify use via method chaining)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.