View Javadoc

1   /**
2    *  Java docs licensed under the Apache License, Version 2.0
3    *  http://www.apache.org/licenses/LICENSE-2.0 
4    *   (c) Copyright 2001, 2002 Motorola, Inc.  ALL RIGHTS RESERVED.
5    *
6    *
7    *  @version $Id: PasswordAuthentication.java 1379 2007-10-13 02:00:43Z vlads $
8    */ 
9   package javax.obex;
10  
11  /**
12   * This class holds user name and password combinations.
13   * 
14   * @version 1.0 February 11, 2002
15   */
16  public class PasswordAuthentication {
17  
18  	/**
19  	 * Creates a new <code>PasswordAuthentication</code> with the user name
20  	 * and password provided.
21  	 * 
22  	 * @param userName
23  	 *            the user name to include; this may be <code>null</code>
24  	 * 
25  	 * @param password
26  	 *            the password to include in the response
27  	 * 
28  	 * @exception NullPointerException
29  	 *                if <code>password</code> is <code>null</code>
30  	 */
31  	public PasswordAuthentication(byte[] userName, byte[] password) {
32  		if (password == null) {
33  			throw new NullPointerException("password is null");
34  		}
35  	}
36  
37  	/**
38  	 * Retrieves the user name that was specified in the constructor. The user
39  	 * name may be <code>null</code>.
40  	 * 
41  	 * @return the user name
42  	 */
43  	public byte[] getUserName() {
44  		return null;
45  	}
46  
47  	/**
48  	 * Retrieves the password.
49  	 * 
50  	 * @return the password
51  	 */
52  	public byte[] getPassword() {
53  	    return null;
54  	}
55  }