public class MavenDockerCredentialProvider extends Object implements com.microsoft.azure.common.docker.IDockerCredentialProvider
| Modifier and Type | Field and Description |
|---|---|
private org.apache.maven.settings.Server |
server |
private String |
serverId |
private org.apache.maven.settings.Settings |
settings |
| Constructor and Description |
|---|
MavenDockerCredentialProvider(org.apache.maven.settings.Settings settings,
String serverId) |
| Modifier and Type | Method and Description |
|---|---|
static MavenDockerCredentialProvider |
fromMavenSettings(org.apache.maven.settings.Settings settings,
String serverId) |
String |
getPassword() |
String |
getUsername() |
private void |
initializeServer() |
void |
validate() |
private org.apache.maven.settings.Server server
private org.apache.maven.settings.Settings settings
private String serverId
public MavenDockerCredentialProvider(org.apache.maven.settings.Settings settings,
String serverId)
public static MavenDockerCredentialProvider fromMavenSettings(org.apache.maven.settings.Settings settings, String serverId)
public String getUsername() throws com.microsoft.azure.common.exceptions.AzureExecutionException
getUsername in interface com.microsoft.azure.common.docker.IDockerCredentialProvidercom.microsoft.azure.common.exceptions.AzureExecutionExceptionpublic String getPassword() throws com.microsoft.azure.common.exceptions.AzureExecutionException
getPassword in interface com.microsoft.azure.common.docker.IDockerCredentialProvidercom.microsoft.azure.common.exceptions.AzureExecutionExceptionpublic void validate()
throws com.microsoft.azure.common.exceptions.AzureExecutionException
validate in interface com.microsoft.azure.common.docker.IDockerCredentialProvidercom.microsoft.azure.common.exceptions.AzureExecutionExceptionprivate void initializeServer()
throws com.microsoft.azure.common.exceptions.AzureExecutionException
com.microsoft.azure.common.exceptions.AzureExecutionExceptionCopyright © 2020. All rights reserved.