Package com.microsoft.azure.maven.utils
Class MavenAuthUtils
- java.lang.Object
-
- com.microsoft.azure.maven.utils.MavenAuthUtils
-
public class MavenAuthUtils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private static StringINVALID_AZURE_ENVIRONMENT
-
Constructor Summary
Constructors Constructor Description MavenAuthUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.microsoft.azure.toolkit.lib.auth.model.AuthConfigurationbuildAuthConfiguration(org.apache.maven.execution.MavenSession session, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter, MavenAuthConfiguration auth)private static com.microsoft.azure.toolkit.lib.auth.model.AuthConfigurationconvertToAuthConfiguration(MavenAuthConfiguration mavenAuthConfiguration)static voiddisableIdentityLogs()private static voidputPropertyIfNotExist(String key, String value)
-
-
-
Field Detail
-
INVALID_AZURE_ENVIRONMENT
private static final String INVALID_AZURE_ENVIRONMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildAuthConfiguration
public static com.microsoft.azure.toolkit.lib.auth.model.AuthConfiguration buildAuthConfiguration(org.apache.maven.execution.MavenSession session, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter, @Nonnull MavenAuthConfiguration auth) throws com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException, MavenDecryptException- Throws:
com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionExceptionMavenDecryptException
-
convertToAuthConfiguration
private static com.microsoft.azure.toolkit.lib.auth.model.AuthConfiguration convertToAuthConfiguration(MavenAuthConfiguration mavenAuthConfiguration) throws com.microsoft.azure.toolkit.lib.auth.exception.InvalidConfigurationException
- Throws:
com.microsoft.azure.toolkit.lib.auth.exception.InvalidConfigurationException
-
disableIdentityLogs
public static void disableIdentityLogs()
-
-