public class AzureAuthHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AUTH_FILE_NOT_CONFIG |
static String |
AUTH_FILE_NOT_EXIST |
static String |
AUTH_FILE_READ_FAIL |
static String |
AUTH_WITH_AZURE_CLI |
static String |
AUTH_WITH_FILE |
static String |
AUTH_WITH_SERVER_ID |
static String |
AZURE_AUTH_INVALID |
static String |
AZURE_CLI_AUTH_FAIL |
static String |
CERTIFICATE |
static String |
CERTIFICATE_FILE_NOT_CONFIG |
static String |
CERTIFICATE_FILE_READ_FAIL |
static String |
CERTIFICATE_PASSWORD |
static String |
CLIENT_ID |
static String |
CLIENT_ID_NOT_CONFIG |
protected AuthConfiguration |
config |
static String |
ENVIRONMENT |
static String |
KEY |
static String |
KEY_NOT_CONFIG |
static String |
SERVER_ID_NOT_CONFIG |
static String |
SERVER_ID_NOT_FOUND |
static String |
TENANT_ID |
static String |
TENANT_ID_NOT_CONFIG |
static String |
USE_CERTIFICATE_TO_AUTH |
static String |
USE_KEY_TO_AUTH |
| Constructor and Description |
|---|
AzureAuthHelper(AuthConfiguration config)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected com.microsoft.azure.management.Azure.Configurable |
azureConfigure() |
protected com.microsoft.azure.credentials.ApplicationTokenCredentials |
getAppTokenCredentialsFromServer(org.apache.maven.settings.Server server)
Get ApplicationTokenCredentials from server definition in Maven settings.xml
|
protected com.microsoft.azure.management.Azure.Authenticated |
getAuthObj() |
protected com.microsoft.azure.management.Azure.Authenticated |
getAuthObjFromAzureCli()
Get Authenticated object using authentication file from Azure CLI 2.0
|
protected com.microsoft.azure.management.Azure.Authenticated |
getAuthObjFromFile(File authFile)
Get Authenticated object using file.
|
protected com.microsoft.azure.management.Azure.Authenticated |
getAuthObjFromServerId(org.apache.maven.settings.Settings settings,
String serverId)
Get Authenticated object by referencing server definition in Maven settings.xml
|
com.microsoft.azure.management.Azure |
getAzureClient() |
protected com.microsoft.azure.AzureEnvironment |
getAzureEnvironment(String environment) |
private org.apache.maven.plugin.logging.Log |
getLog() |
protected com.microsoft.rest.LogLevel |
getLogLevel() |
public static final String CLIENT_ID
public static final String TENANT_ID
public static final String KEY
public static final String CERTIFICATE
public static final String CERTIFICATE_PASSWORD
public static final String ENVIRONMENT
public static final String AUTH_WITH_SERVER_ID
public static final String AUTH_WITH_FILE
public static final String AUTH_WITH_AZURE_CLI
public static final String USE_KEY_TO_AUTH
public static final String USE_CERTIFICATE_TO_AUTH
public static final String SERVER_ID_NOT_CONFIG
public static final String SERVER_ID_NOT_FOUND
public static final String CLIENT_ID_NOT_CONFIG
public static final String TENANT_ID_NOT_CONFIG
public static final String KEY_NOT_CONFIG
public static final String CERTIFICATE_FILE_NOT_CONFIG
public static final String CERTIFICATE_FILE_READ_FAIL
public static final String AZURE_AUTH_INVALID
public static final String AUTH_FILE_NOT_CONFIG
public static final String AUTH_FILE_NOT_EXIST
public static final String AUTH_FILE_READ_FAIL
public static final String AZURE_CLI_AUTH_FAIL
protected AuthConfiguration config
public AzureAuthHelper(AuthConfiguration config)
config - public com.microsoft.azure.management.Azure getAzureClient()
private org.apache.maven.plugin.logging.Log getLog()
protected com.microsoft.rest.LogLevel getLogLevel()
protected com.microsoft.azure.management.Azure.Configurable azureConfigure()
protected com.microsoft.azure.AzureEnvironment getAzureEnvironment(String environment)
protected com.microsoft.azure.management.Azure.Authenticated getAuthObj()
protected com.microsoft.azure.management.Azure.Authenticated getAuthObjFromServerId(org.apache.maven.settings.Settings settings,
String serverId)
settings - Settings objectserverId - Server Id to search in settings.xmlprotected com.microsoft.azure.management.Azure.Authenticated getAuthObjFromFile(File authFile)
authFile - Authentication file object.protected com.microsoft.azure.management.Azure.Authenticated getAuthObjFromAzureCli()
protected com.microsoft.azure.credentials.ApplicationTokenCredentials getAppTokenCredentialsFromServer(org.apache.maven.settings.Server server)
server - Server object from settings.xmlCopyright © 2018. All rights reserved.