Search in sources :

Example 1 with AuthCmd

use of com.github.dockerjava.api.command.AuthCmd in project camel by apache.

the class DockerProducer method executeAuthRequest.

/*********************
     * General Requests
     ********************/
/**
     * Produces a Authorization request
     *
     * @param client
     * @param message
     * @return
     */
private AuthCmd executeAuthRequest(DockerClient client, Message message) {
    LOGGER.debug("Executing Docker Auth Request");
    AuthCmd authCmd = client.authCmd();
    AuthConfig authConfig = client.authConfig();
    if (authCmd != null) {
        authCmd.withAuthConfig(authConfig);
    }
    return authCmd;
}
Also used : AuthConfig(com.github.dockerjava.api.model.AuthConfig) AuthCmd(com.github.dockerjava.api.command.AuthCmd)

Aggregations

AuthCmd (com.github.dockerjava.api.command.AuthCmd)1 AuthConfig (com.github.dockerjava.api.model.AuthConfig)1