Class SecDispatcherProvider

java.lang.Object
org.apache.maven.internal.secdispatcher.SecDispatcherProvider
All Implemented Interfaces:
javax.inject.Provider<org.sonatype.plexus.components.sec.dispatcher.SecDispatcher>

@Singleton @Named("maven") public class SecDispatcherProvider extends Object implements javax.inject.Provider<org.sonatype.plexus.components.sec.dispatcher.SecDispatcher>
Provides a security dispatcher named "maven". Maven uses this security dispatcher instead of the default. The default security dispatcher is unaware of Maven specific configuration file locations and should not be used (injected or referenced in any way) at all in any Maven related codebase.

Note: This whole stuff is really deprecated and replaced with proper security in Maven 4, while this one is just "security through obscurity".

Since:
3.9.13
  • Constructor Details

    • SecDispatcherProvider

      @Inject public SecDispatcherProvider(org.sonatype.plexus.components.cipher.PlexusCipher plexusCipher, Map<String,org.sonatype.plexus.components.sec.dispatcher.PasswordDecryptor> decryptors, @Named("${maven.settings.security.configurationFile:-~/.m2/settings-security.xml}") String configurationFile)
  • Method Details

    • get

      public org.sonatype.plexus.components.sec.dispatcher.SecDispatcher get()
      Specified by:
      get in interface javax.inject.Provider<org.sonatype.plexus.components.sec.dispatcher.SecDispatcher>