Class JGitPasswordAuthentication

  • All Implemented Interfaces:
    org.apache.sshd.client.auth.UserAuth, org.apache.sshd.client.session.ClientSessionHolder, org.apache.sshd.common.auth.UserAuthInstance<org.apache.sshd.client.session.ClientSession>, org.apache.sshd.common.NamedResource

    public class JGitPasswordAuthentication
    extends org.apache.sshd.client.auth.password.UserAuthPassword
    A password authentication handler that respects the NumberOfPasswordPrompts ssh config.
    • Field Summary

      • Fields inherited from class org.apache.sshd.client.auth.password.UserAuthPassword

        NAME
      • Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

        log
      • Fields inherited from interface org.apache.sshd.common.NamedResource

        BY_NAME_COMPARATOR, NAME_EXTRACTOR
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init​(org.apache.sshd.client.session.ClientSession session, String service)  
      protected String resolveAttemptedPassword​(org.apache.sshd.client.session.ClientSession session, String service)  
      • Methods inherited from class org.apache.sshd.client.auth.password.UserAuthPassword

        processAuthDataRequest, sendAuthDataRequest, sendPassword, signalAuthMethodFailure, signalAuthMethodSuccess
      • Methods inherited from class org.apache.sshd.client.auth.AbstractUserAuth

        destroy, getClientSession, getName, getService, getSession, process, toString
      • Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

        debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
    • Constructor Detail

      • JGitPasswordAuthentication

        public JGitPasswordAuthentication()
    • Method Detail

      • init

        public void init​(org.apache.sshd.client.session.ClientSession session,
                         String service)
                  throws Exception
        Specified by:
        init in interface org.apache.sshd.client.auth.UserAuth
        Overrides:
        init in class org.apache.sshd.client.auth.password.UserAuthPassword
        Throws:
        Exception
      • resolveAttemptedPassword

        protected String resolveAttemptedPassword​(org.apache.sshd.client.session.ClientSession session,
                                                  String service)
                                           throws Exception
        Overrides:
        resolveAttemptedPassword in class org.apache.sshd.client.auth.password.UserAuthPassword
        Throws:
        Exception