Class JGitUserInteraction

  • All Implemented Interfaces:
    org.apache.sshd.client.auth.keyboard.UserInteraction

    public class JGitUserInteraction
    extends Object
    implements org.apache.sshd.client.auth.keyboard.UserInteraction
    A UserInteraction callback implementation based on a CredentialsProvider.
    • Method Detail

      • isInteractionAllowed

        public boolean isInteractionAllowed​(org.apache.sshd.client.session.ClientSession session)
        Specified by:
        isInteractionAllowed in interface org.apache.sshd.client.auth.keyboard.UserInteraction
      • interactive

        public String[] interactive​(org.apache.sshd.client.session.ClientSession session,
                                    String name,
                                    String instruction,
                                    String lang,
                                    String[] prompt,
                                    boolean[] echo)
        Specified by:
        interactive in interface org.apache.sshd.client.auth.keyboard.UserInteraction
      • resolveAuthPasswordAttempt

        public String resolveAuthPasswordAttempt​(org.apache.sshd.client.session.ClientSession session)
                                          throws Exception
        Specified by:
        resolveAuthPasswordAttempt in interface org.apache.sshd.client.auth.keyboard.UserInteraction
        Throws:
        Exception
      • getUpdatedPassword

        public String getUpdatedPassword​(org.apache.sshd.client.session.ClientSession session,
                                         String prompt,
                                         String lang)
        Specified by:
        getUpdatedPassword in interface org.apache.sshd.client.auth.keyboard.UserInteraction