public class DockerCredentialHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Authorization |
retrieve() |
public Authorization retrieve() throws java.io.IOException, NonexistentServerUrlDockerCredentialHelperException, NonexistentDockerCredentialHelperException
The credential helper CLI is called in the form:
echo -n <server URL> | docker-credential-<credential helper suffix> get
java.io.IOException - if writing/reading process input/output fails.NonexistentServerUrlDockerCredentialHelperException - if credentials are not found.NonexistentDockerCredentialHelperException - if the credential helper CLI doesn't exist.