Class DockerServerCredentials
java.lang.Object
com.cloudbees.plugins.credentials.BaseCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
org.jenkinsci.plugins.docker.commons.credentials.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:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptor
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
com.cloudbees.plugins.credentials.common.IdCredentials.Helpers
Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
com.cloudbees.plugins.credentials.common.StandardCredentials.NameProvider
-
Constructor Summary
ConstructorDescriptionDockerServerCredentials
(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, Secret clientKeySecret, String clientCertificate, String serverCaCertificate) DockerServerCredentials
(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String description, String clientKey, String clientCertificate, String serverCaCertificate) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionGets the PEM formatted client certificate.Deprecated.Gets the PEM formatted secret key to identify the client.Gets the PEM formatted server certificate.Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
equals, getDescription, getId, hashCode
Methods inherited from class com.cloudbees.plugins.credentials.BaseCredentials
getDescriptor, getScope
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.cloudbees.plugins.credentials.Credentials
forRun, getDescriptor, getScope
-
Constructor Details
-
Method Details
-
getClientKey
Deprecated. -
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
Gets the PEM formatted client certificate. The--tlscert
option in docker(1).- Returns:
- null if there's no authentication
-
getServerCaCertificate
Gets the PEM formatted server certificate. The--tlscacert
option in docker(1).- Returns:
- null if there's no authentication
-
DockerServerCredentials(CredentialsScope, String, String, Secret, String, String)