public class DockerCredentialHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
Credential |
retrieve()
Calls the credential helper CLI in the form:
|
public Credential retrieve() throws IOException, NonexistentServerUrlDockerCredentialHelperException, NonexistentDockerCredentialHelperException
echo -n <server URL> | docker-credential-<credential helper suffix> get
IOException - if writing/reading process input/output fails.NonexistentServerUrlDockerCredentialHelperException - if credentials are not found.NonexistentDockerCredentialHelperException - if the credential helper CLI doesn't exist.Copyright © 2018. All rights reserved.