/[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.9 by mkoch, Thu Apr 8 16:26:04 2004 UTC revision 1.9.2.1 by gnu_andrew, Sat Jan 15 17:01:56 2005 UTC
# Line 39  package java.net; Line 39  package java.net;
39    
40    
41  /**  /**
42    * This class serves a container for username/password pairs.   * This class serves a container for username/password pairs.
43    *   *
44    * @author Aaron M. Renn (arenn@urbanophile.com)   * @author Aaron M. Renn (arenn@urbanophile.com)
45    * @since 1.2   *
46    */   * @since 1.2
47     */
48  public final class PasswordAuthentication  public final class PasswordAuthentication
49  {  {
   /*  
    * Instance Variables  
    */  
   
50    /**    /**
51      * The username     * The username
52      */     */
53    private String username;    private String username;
54    
55    /**    /**
56      * The password     * The password
     */  
   private char[] password;  
   
   /*************************************************************************/  
   
   /*  
    * Constructors  
57     */     */
58      private char[] password;
59    
60    /**    /**
61      * Creates a new <code>PasswordAuthentication</code> object from the     * Creates a new <code>PasswordAuthentication</code> object from the
62      * specified username and password.     * specified username and password.
63      *     *
64      * @param username The username for this object     * @param username The username for this object
65      * @param password The password for this object     * @param password The password for this object
66      */     */
67    public PasswordAuthentication(String username, char[] password)    public PasswordAuthentication(String username, char[] password)
68    {    {
69      this.username = username;      this.username = username;
70      this.password = password;      this.password = password;
71    }    }
72    
   /*************************************************************************/  
   
   /*  
    * Instance Methods  
    */  
   
73    /**    /**
74      * Returns the username associated with this object     * Returns the username associated with this object
75      *     *
76      * @return The username     * @return The username
77      */     */
78    public String getUserName()    public String getUserName()
79    {    {
80      return (username);      return username;
81    }    }
82    
83    /**    /**
84      * Returns the password associated with this object     * Returns the password associated with this object
85      *     *
86      * @return The password     * @return The password
87      */     */
88    public char[] getPassword()    public char[] getPassword()
89    {    {
90      return (password);      return password;
91    }    }
92  } // class PasswordAuthentication  }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.9.2.1

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