Class DockerServerCredentials

  • All Implemented Interfaces:
    com.cloudbees.plugins.credentials.common.IdCredentials, com.cloudbees.plugins.credentials.common.StandardCredentials, com.cloudbees.plugins.credentials.Credentials, ExtensionPoint, Describable<com.cloudbees.plugins.credentials.Credentials>, Serializable

    public class DockerServerCredentials
    extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
    Represents the connection details to talk to a TLS server, which involves endpoint URI, optional client secret key & certificate, and optional CA certificate to verify the server.
    Author:
    Kohsuke Kawaguchi
    See Also:
    DockerServerEndpoint, Serialized Form
    • Method Detail

      • getClientKeySecret

        @CheckForNull
        public Secret getClientKeySecret()
        Gets the PEM formatted secret key to identify the client. The --tlskey option in docker(1)
        Returns:
        null if there's no authentication
      • getClientCertificate

        @CheckForNull
        public String getClientCertificate()
        Gets the PEM formatted client certificate. The --tlscert option in docker(1).
        Returns:
        null if there's no authentication
      • getServerCaCertificate

        @CheckForNull
        public String getServerCaCertificate()
        Gets the PEM formatted server certificate. The --tlscacert option in docker(1).
        Returns:
        null if there's no authentication