diff options
| author | Michael Koch <konqueror@gmx.de> | 2003-05-26 12:58:02 +0000 |
|---|---|---|
| committer | Michael Koch <mkoch@gcc.gnu.org> | 2003-05-26 12:58:02 +0000 |
| commit | b91c701d199af4c4860919595ccf2cc755418cc1 (patch) | |
| tree | 86efa3b8b35f1d1070f09616f4939e1a8d3346ee /libjava/java/net/PasswordAuthentication.java | |
| parent | 8729d659a7e6d236c7012e5db5c865102fc3c916 (diff) | |
NetPermission.java, [...]: New versions from classpath.
2003-05-26 Michael Koch <konqueror@gmx.de>
* java/net/NetPermission.java,
java/net/NetworkInterface.java,
java/net/PasswordAuthentication.java,
java/net/SocketPermission.java:
New versions from classpath.
From-SVN: r67174
Diffstat (limited to 'libjava/java/net/PasswordAuthentication.java')
| -rw-r--r-- | libjava/java/net/PasswordAuthentication.java | 126 |
1 files changed, 59 insertions, 67 deletions
diff --git a/libjava/java/net/PasswordAuthentication.java b/libjava/java/net/PasswordAuthentication.java index 0c4faa54398..97554e3dde4 100644 --- a/libjava/java/net/PasswordAuthentication.java +++ b/libjava/java/net/PasswordAuthentication.java @@ -1,5 +1,5 @@ /* PasswordAuthentication.java -- Container class for username/password pairs - Copyright (C) 1998,2000 Free Software Foundation, Inc. + Copyright (C) 1998, 2000, 2003 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -45,72 +45,64 @@ package java.net; */ public final class PasswordAuthentication { - -/*************************************************************************/ - -/* - * Instance Variables - */ - -/** - * The username - */ -private String username; - -/** - * The password - */ -private char[] password; - -/*************************************************************************/ - -/* - * Constructors - */ - -/** - * Creates a new PasswordAuthentication object from the specified username - * and password. - * - * @param username The username for this object - * @param password The password for this object - */ -public -PasswordAuthentication(String username, char[] password) -{ - this.username = username; - this.password = password; -} - -/*************************************************************************/ - -/* - * Instance Methods - */ - -/** - * Returns the username associated with this object - * - * @return The username - */ -public String -getUserName() -{ - return(username); -} - -/*************************************************************************/ - -/** - * Returns the password associated with this object - * - * @return The password - */ -public char[] -getPassword() -{ - return(password); -} + /* + * Instance Variables + */ + + /** + * The username + */ + private String username; + + /** + * The password + */ + private char[] password; + + /*************************************************************************/ + + /* + * Constructors + */ + + /** + * Creates a new <code>PasswordAuthentication</code> object from the + * specified username and password. + * + * @param username The username for this object + * @param password The password for this object + */ + public PasswordAuthentication(String username, char[] password) + { + this.username = username; + this.password = password; + } + + /*************************************************************************/ + + /* + * Instance Methods + */ + + /** + * Returns the username associated with this object + * + * @return The username + */ + public String getUserName() + { + return(username); + } + + /** + * Returns the password associated with this object + * + * @return The password + */ + public char[] getPassword() + { + return(password); + } } // class PasswordAuthentication |
