public abstract class RegistryAuthenticators extends Object
RegistryAuthenticator.| Constructor and Description |
|---|
RegistryAuthenticators() |
| Modifier and Type | Method and Description |
|---|---|
static RegistryAuthenticator |
forDockerHub(String repository) |
static RegistryAuthenticator |
forOther(String serverUrl,
String repository)
Gets a
RegistryAuthenticator for a custom registry server and repository. |
public static RegistryAuthenticator forDockerHub(String repository)
@Nullable public static RegistryAuthenticator forOther(String serverUrl, String repository) throws RegistryAuthenticationFailedException, IOException, RegistryException
RegistryAuthenticator for a custom registry server and repository.serverUrl - the server URL for the registry (for example, gcr.io)repository - the image/repository name (also known as, namespace)RegistryAuthenticator to authenticate pulls/pushes with the registry, or
null if no token authentication is necessaryRegistryAuthenticationFailedException - if failed to create the registry authenticatorIOException - if communicating with the endpoint failsRegistryException - if communicating with the endpoint failsCopyright © 2018. All rights reserved.