public class DockerConfigCredentialRetriever
extends java.lang.Object
The credentials are searched in the following order (stopping when credentials are found):
auth defined for a registry.
credsStore credential helper, if available.
credHelpers, if available.
| Constructor and Description |
|---|
DockerConfigCredentialRetriever(java.lang.String registry) |
| Modifier and Type | Method and Description |
|---|---|
Authorization |
retrieve()
Retrieves credentials for a registry.
|
public DockerConfigCredentialRetriever(java.lang.String registry)
@Nullable public Authorization retrieve() throws java.io.IOException
Authorization found for registry, or null if not foundjava.io.IOException - if failed to parse the config JSON