Class ConsolePasswordPrompt

java.lang.Object
org.apache.maven.cling.invoker.mvnenc.ConsolePasswordPrompt
All Implemented Interfaces:
org.codehaus.plexus.components.secdispatcher.MasterSource, org.codehaus.plexus.components.secdispatcher.MasterSourceMeta

@Singleton @Named("console-prompt") public class ConsolePasswordPrompt extends Object implements org.codehaus.plexus.components.secdispatcher.MasterSource, org.codehaus.plexus.components.secdispatcher.MasterSourceMeta
Trivial master password source using Maven Prompter service.
  • Field Details

  • Constructor Details

    • ConsolePasswordPrompt

      @Inject public ConsolePasswordPrompt(org.apache.maven.api.services.Prompter prompter)
  • Method Details

    • description

      public String description()
      Specified by:
      description in interface org.codehaus.plexus.components.secdispatcher.MasterSourceMeta
    • configTemplate

      public Optional<String> configTemplate()
      Specified by:
      configTemplate in interface org.codehaus.plexus.components.secdispatcher.MasterSourceMeta
    • handle

      public String handle(String config) throws org.codehaus.plexus.components.secdispatcher.SecDispatcherException
      Specified by:
      handle in interface org.codehaus.plexus.components.secdispatcher.MasterSource
      Throws:
      org.codehaus.plexus.components.secdispatcher.SecDispatcherException
    • validateConfiguration

      public org.codehaus.plexus.components.secdispatcher.SecDispatcher.ValidationResponse validateConfiguration(String config)
      Specified by:
      validateConfiguration in interface org.codehaus.plexus.components.secdispatcher.MasterSource