Class MavenAuthUtils


  • public class MavenAuthUtils
    extends Object
    • Constructor Detail

      • MavenAuthUtils

        public MavenAuthUtils()
    • 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.AzureExecutionException
        MavenDecryptException
      • 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()
      • putPropertyIfNotExist

        private static void putPropertyIfNotExist​(String key,
                                                  String value)