Examples of UIKeyboardInteractive


Examples of org.vngx.jsch.UIKeyboardInteractive

            byte[][] response = null;
            if( password != null && prompt.length == 1 && !echo[0] && prompt[0].toLowerCase().startsWith("password:") ) {
              response = new byte[][] { password };
              password = null;
            } else if( num > 0 || (name.length() > 0 || instruction.length() > 0) ) {
              UIKeyboardInteractive kbi = (UIKeyboardInteractive) _userinfo;
              String[] _response = kbi.promptKeyboardInteractive(_passwordPrompt, name, instruction, prompt, echo);
              if( _response != null ) {
                response = new byte[_response.length][];
                for( int i = 0; i < _response.length; i++ ) {
                  response[i] = Util.str2byte(_response[i]);
                }
View Full Code Here

Examples of org.vngx.jsch.UIKeyboardInteractive

        _userinfo.showMessage(MessageConstants.PASSWORD_MUST_CHANGE);
      }
      return false// Can't change password without keyboard-interactive
    }

    UIKeyboardInteractive kbi = (UIKeyboardInteractive) _userinfo;
    String[] response = kbi.promptKeyboardInteractive(
        _passwordPrompt, "Password Change Required", Util.byte2str(instruction),
        new String[]{"New Password: "}, new boolean[]{false});
    if( response == null ) {
      throw new AuthCancelException("UserAuth 'password' canceled by user during change request");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.