public class AuthDelegatingDockerClientConfig
extends java.lang.Object
implements com.github.dockerjava.core.DockerClientConfig
DockerClientConfig
which overrides how authentication
configuration is obtained. A delegate DockerClientConfig
will be called first
to try and obtain auth credentials, but after that RegistryAuthLocator
will be
used to try and improve the auth resolution (e.g. using credential helpers).Constructor and Description |
---|
AuthDelegatingDockerClientConfig(com.github.dockerjava.core.DockerClientConfig delegate) |
Modifier and Type | Method and Description |
---|---|
com.github.dockerjava.api.model.AuthConfig |
effectiveAuthConfig(java.lang.String imageName) |
com.github.dockerjava.core.RemoteApiVersion |
getApiVersion() |
com.github.dockerjava.api.model.AuthConfigurations |
getAuthConfigurations() |
java.net.URI |
getDockerHost() |
java.lang.String |
getRegistryEmail() |
java.lang.String |
getRegistryPassword() |
java.lang.String |
getRegistryUrl() |
java.lang.String |
getRegistryUsername() |
com.github.dockerjava.core.SSLConfig |
getSSLConfig() |
public AuthDelegatingDockerClientConfig(com.github.dockerjava.core.DockerClientConfig delegate)
public com.github.dockerjava.api.model.AuthConfig effectiveAuthConfig(java.lang.String imageName)
effectiveAuthConfig
in interface com.github.dockerjava.core.DockerClientConfig
public java.net.URI getDockerHost()
getDockerHost
in interface com.github.dockerjava.core.DockerClientConfig
public com.github.dockerjava.core.RemoteApiVersion getApiVersion()
getApiVersion
in interface com.github.dockerjava.core.DockerClientConfig
public java.lang.String getRegistryUsername()
getRegistryUsername
in interface com.github.dockerjava.core.DockerClientConfig
public java.lang.String getRegistryPassword()
getRegistryPassword
in interface com.github.dockerjava.core.DockerClientConfig
public java.lang.String getRegistryEmail()
getRegistryEmail
in interface com.github.dockerjava.core.DockerClientConfig
public java.lang.String getRegistryUrl()
getRegistryUrl
in interface com.github.dockerjava.core.DockerClientConfig
public com.github.dockerjava.api.model.AuthConfigurations getAuthConfigurations()
getAuthConfigurations
in interface com.github.dockerjava.core.DockerClientConfig
public com.github.dockerjava.core.SSLConfig getSSLConfig()
getSSLConfig
in interface com.github.dockerjava.core.DockerClientConfig