/[classpath]/classpath/java/net/PasswordAuthentication.java
ViewVC logotype

Diff of /classpath/java/net/PasswordAuthentication.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by mkoch, Tue Aug 27 17:48:05 2002 UTC revision 1.8 by arenn, Sun May 25 18:03:51 2003 UTC
# Line 1  Line 1 
1  /* PasswordAuthentication.java -- Container class for username/password pairs  /* PasswordAuthentication.java -- Container class for username/password pairs
2     Copyright (C) 1998,2000 Free Software Foundation, Inc.     Copyright (C) 1998, 2000, 2003 Free Software Foundation, Inc.
3    
4  This file is part of GNU Classpath.  This file is part of GNU Classpath.
5    
# Line 45  package java.net; Line 45  package java.net;
45    */    */
46  public final class PasswordAuthentication  public final class PasswordAuthentication
47  {  {
48      /*
49  /*************************************************************************/     * Instance Variables
50       */
51  /*  
52   * Instance Variables    /**
53   */      * The username
54        */
55  /**    private String username;
56    * The username  
57    */    /**
58  private String username;      * The password
59        */
60  /**    private char[] password;
61    * The password  
62    */    /*************************************************************************/
63  private char[] password;  
64      /*
65  /*************************************************************************/     * Constructors
66       */
67  /*  
68   * Constructors    /**
69   */      * Creates a new <code>PasswordAuthentication</code> object from the
70        * specified username and password.
71  /**      *
72    * Creates a new PasswordAuthentication object from the specified username      * @param username The username for this object
73    * and password.      * @param password The password for this object
74    *      */
75    * @param username The username for this object    public PasswordAuthentication(String username, char[] password)
76    * @param password The password for this object    {
77    */      this.username = username;
78  public      this.password = password;
79  PasswordAuthentication(String username, char[] password)    }
80  {  
81    this.username = username;    /*************************************************************************/
82    this.password = password;  
83  }    /*
84       * Instance Methods
85  /*************************************************************************/     */
86    
87  /*    /**
88   * Instance Methods      * Returns the username associated with this object
89   */      *
90        * @return The username
91  /**      */
92    * Returns the username associated with this object    public String getUserName()
93    *    {
94    * @return The username      return(username);
95    */    }
96  public String    
97  getUserName()    /**
98  {      * Returns the password associated with this object
99    return(username);      *
100  }      * @return The password
101        */
102  /*************************************************************************/    public char[] getPassword()
103      {
104  /**      return(password);
105    * Returns the password associated with this object    }
   *  
   * @return The password  
   */  
 public char[]  
 getPassword()  
 {  
   return(password);  
 }  
106    
107  } // class PasswordAuthentication  } // class PasswordAuthentication
108    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26