- /*
- * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
- * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
- */
-
- package javax.mail;
-
-
- /**
- * The class PasswordAuthentication is a data holder that is used by
- * Authenticator. It is simply a repository for a user name and a password.
- *
- * @see java.net.PasswordAuthentication
- * @see javax.mail.Authenticator
- * @see javax.mail.Authenticator#getPasswordAuthentication()
- *
- * @author Bill Foote
- * @version 1.3, 12/06/99
- */
-
- public final class PasswordAuthentication {
-
- private String userName;
- private String password;
-
- /**
- * Initialize a new PasswordAuthentication
- * @param userName the user name
- * @param password The user's password
- */
- public PasswordAuthentication(String userName, String password) {
- this.userName = userName;
- this.password = password;
- }
-
- /**
- * @return the user name
- */
- public String getUserName() {
- return userName;
- }
-
- /**
- * @return the password
- */
- public String getPassword() {
- return password;
- }
- }