Class MavenAuthUtils


  • public class MavenAuthUtils
    extends Object
    • Constructor Detail

      • MavenAuthUtils

        public MavenAuthUtils()
    • Method Detail

      • buildAuthConfiguration

        public static com.microsoft.azure.toolkit.lib.auth.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.AuthConfiguration convertToAuthConfiguration​(MavenAuthConfiguration mavenAuthConfiguration)
                                                                                                  throws com.microsoft.azure.toolkit.lib.common.exception.InvalidConfigurationException
        Throws:
        com.microsoft.azure.toolkit.lib.common.exception.InvalidConfigurationException
      • disableIdentityLogs

        public static void disableIdentityLogs()
      • putPropertyIfNotExist

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