public class DockerCredentialRetriever extends Object
| Constructor and Description |
|---|
DockerCredentialRetriever(String serverUrl,
String credentialHelperSuffix) |
| Modifier and Type | Method and Description |
|---|---|
Authorization |
retrieve()
Retrieves the Docker credentials by calling the corresponding CLI.
|
public Authorization retrieve() throws IOException, NonexistentServerUrlDockerCredentialHelperException, NonexistentDockerCredentialHelperException
The credential helper CLI is called in the form:
echo -n <server URL> | docker-credential-<credential helper suffix> get
Copyright © 2018. All rights reserved.