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 ClassesNested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
com.cloudbees.plugins.credentials.common.IdCredentials.HelpersNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
com.cloudbees.plugins.credentials.common.StandardCredentials.NameProvider -
Constructor Summary
ConstructorsConstructorDescriptionDockerServerCredentials(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, hashCodeMethods inherited from class com.cloudbees.plugins.credentials.BaseCredentials
getDescriptor, getScopeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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--tlskeyoption in docker(1)- Returns:
- null if there's no authentication
-
getClientCertificate
Gets the PEM formatted client certificate. The--tlscertoption in docker(1).- Returns:
- null if there's no authentication
-
getServerCaCertificate
Gets the PEM formatted server certificate. The--tlscacertoption in docker(1).- Returns:
- null if there's no authentication
-
DockerServerCredentials(CredentialsScope, String, String, Secret, String, String)