java.lang.Object
org.jenkinsci.plugins.docker.commons.credentials.KeyMaterial
All Implemented Interfaces:
Closeable, Serializable, AutoCloseable

@Deprecated public abstract class KeyMaterial extends Object implements Closeable, Serializable
Deprecated.
Represents a locally extracted credentials information.

Implementations of this class are created by their corresponding KeyMaterialFactory implementations. Be sure to call close() when finished using a KeyMaterial instance.

Author:
Kohsuke Kawaguchi
See Also:
  • Field Details

  • Constructor Details

    • KeyMaterial

      protected KeyMaterial(EnvVars envVars)
      Deprecated.
  • Method Details

    • env

      public EnvVars env()
      Deprecated.
      Get the environment variables needed to be passed when docker runs, to access DockerServerCredentials that this object was created from.
    • close

      public abstract void close() throws IOException
      Deprecated.
      Deletes the key materials from the file system. As key materials are copied into files every time KeyMaterialFactory is created, it must be also cleaned up each time.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException