
com.github.dockerjava.core.command.AuthCmdImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-java Show documentation
Show all versions of docker-java Show documentation
Java API Client for Docker
package com.github.dockerjava.core.command;
import com.github.dockerjava.api.command.AuthCmd;
import com.github.dockerjava.api.exception.UnauthorizedException;
import com.github.dockerjava.api.model.AuthConfig;
import com.github.dockerjava.api.model.AuthResponse;
/**
*
* Authenticate with the server, useful for checking authentication.
*
*/
public class AuthCmdImpl extends AbstrDockerCmd implements AuthCmd {
private AuthConfig authConfig;
public AuthCmdImpl(AuthCmd.Exec exec, AuthConfig authConfig) {
super(exec);
withAuthConfig(authConfig);
}
@Override
public AuthResponse exec() throws UnauthorizedException {
return super.exec();
}
public AuthConfig getAuthConfig() {
return authConfig;
}
public AuthCmd withAuthConfig(AuthConfig authConfig) {
this.authConfig = authConfig;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy