ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/ssh SSHUserInfo.java
Date Fri, 08 Jul 2005 13:39:24 GMT
peterreilly    2005/07/08 06:39:23

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/ssh
                        SSHUserInfo.java
  Log:
  javadoc
  
  Revision  Changes    Path
  1.12      +30 -0     ant/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHUserInfo.java
  
  Index: SSHUserInfo.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHUserInfo.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- SSHUserInfo.java	28 Jun 2005 12:41:58 -0000	1.11
  +++ SSHUserInfo.java	8 Jul 2005 13:39:23 -0000	1.12
  @@ -21,6 +21,7 @@
   import com.jcraft.jsch.UIKeyboardInteractive;
   
   /**
  + * Class containing information on an SSH user.
    */
   public class SSHUserInfo implements UserInfo, UIKeyboardInteractive {
   
  @@ -31,11 +32,17 @@
       private boolean firstTime = true;
       private boolean trustAllCertificates;
   
  +    /** Constructor for SSHUserInfo. */
       public SSHUserInfo() {
           super();
           this.trustAllCertificates = false;
       }
   
  +    /**
  +     * Constructor for SSHUserInfo.
  +     * @param password the user's password
  +     * @param trustAllCertificates if true trust hosts whose identity is unknown
  +     */
       public SSHUserInfo(String password, boolean trustAllCertificates) {
           super();
           this.password = password;
  @@ -147,10 +154,22 @@
           this.keyfile = keyfile;
       }
   
  +    // (NOTE: this method does not seem to be called
  +    /**
  +     * Whether to prompt for a passphase.
  +     * @param message ignored
  +     * @return true always
  +     */
       public boolean promptPassphrase(String message) {
           return true;
       }
   
  +    // (NOTE: this method does not seem to be called
  +    /**
  +     * Whether to prompt for a password.
  +     * @param passwordPrompt ignored
  +     * @return true the first time this is called, false otherwise
  +     */
       public boolean promptPassword(String passwordPrompt) {
           //log(passwordPrompt, Project.MSG_DEBUG);
           if (firstTime) {
  @@ -160,11 +179,22 @@
           return firstTime;
       }
   
  +    // (NOTE: this method does not seem to be called
  +    /**
  +     * Whether to prompt yes or no.
  +     * @param message ignored
  +     * @return the value of trustAllCertificates
  +     */
       public boolean promptYesNo(String message) {
           //log(prompt, Project.MSG_DEBUG);
           return trustAllCertificates;
       }
   
  +    // (NOTE: this method does not seem to be called
  +    /**
  +     * Do nothing.
  +     * @param message ignored
  +     */
       public void showMessage(String message) {
           //log(message, Project.MSG_DEBUG);
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message