All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.obex.PasswordAuthentication Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
/**
 *  Java docs licensed under the Apache License, Version 2.0
 *  http://www.apache.org/licenses/LICENSE-2.0 
 *   (c) Copyright 2001, 2002 Motorola, Inc.  ALL RIGHTS RESERVED.
 *
 *
 *  @version $Id: PasswordAuthentication.java 1379 2007-10-13 02:00:43Z vlads $
 */ 
package javax.obex;

/**
 * This class holds user name and password combinations.
 * 
 * @version 1.0 February 11, 2002
 */
public class PasswordAuthentication {

	/**
	 * Creates a new PasswordAuthentication with the user name
	 * and password provided.
	 * 
	 * @param userName
	 *            the user name to include; this may be null
	 * 
	 * @param password
	 *            the password to include in the response
	 * 
	 * @exception NullPointerException
	 *                if password is null
	 */
	public PasswordAuthentication(byte[] userName, byte[] password) {
		if (password == null) {
			throw new NullPointerException("password is null");
		}
	}

	/**
	 * Retrieves the user name that was specified in the constructor. The user
	 * name may be null.
	 * 
	 * @return the user name
	 */
	public byte[] getUserName() {
		return null;
	}

	/**
	 * Retrieves the password.
	 * 
	 * @return the password
	 */
	public byte[] getPassword() {
	    return null;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy