/* Copyright 1998, 2005 The Apache Software Foundation or its licensors, as applicable
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package java.net;


/**
 * This class represents permission to access network resources.
 * <p>
 * There are three valid target names:
 * <dl>
 * <dt>setDefaultAuthenticator</dt>
 * <dd>Allows the default authenticator to be set.</dd>
 * <dt>requestPasswordAuthentication</dt>
 * <dd>Allows the default authenticator to be retrieved.</dd>
 * <dt>specifyStreamHandler</dt>
 * <dd>Allows a stream (protocol) handler to be set when constructing an URL
 * object</dd>
 * </dl>
 * 
 * @see java.security.BasicPermission
 * @see SecurityManager
 */
public final class NetPermission extends java.security.BasicPermission {

	/**
	 * Creates an instance of this class with the given name.
	 * 
	 * @param name
	 *            String the name of the new permission.
	 */
	public NetPermission(String name) {
		super(name);
	}

	/**
	 * Creates an instance of this class with the given name and action list.
	 * The action list is ignored.
	 * 
	 * @param name
	 *            String the name of the new permission.
	 * @param actions
	 *            String ignored.
	 */
	public NetPermission(String name, String actions) {
		super(name, actions);
	}
}

/* Copyright 1998, 2006 The Apache Software Foundation or its licensors, as applicable
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package java.net;


/**
 * This class represents permission to access network resources.
 * <p>
 * There are three valid target names:
 * <dl>
 * <dt>setDefaultAuthenticator</dt>
 * <dd>Allows the default authenticator to be set.</dd>
 * <dt>requestPasswordAuthentication</dt>
 * <dd>Allows the default authenticator to be retrieved.</dd>
 * <dt>specifyStreamHandler</dt>
 * <dd>Allows a stream (protocol) handler to be set when constructing an URL
 * object</dd>
 * </dl>
 * 
 * @see java.security.BasicPermission
 * @see SecurityManager
 */
public final class NetPermission extends java.security.BasicPermission {

	private static final long serialVersionUID = -8343910153355041693L;

	/**
	 * Creates an instance of this class with the given name.
	 * 
	 * @param name
	 *            String the name of the new permission.
	 */
	public NetPermission(String name) {
		super(name);
	}

	/**
	 * Creates an instance of this class with the given name and action list.
	 * The action list is ignored.
	 * 
	 * @param name
	 *            String the name of the new permission.
	 * @param actions
	 *            String ignored.
	 */
	public NetPermission(String name, String actions) {
		super(name, actions);
	}
}

Apply patch HARMONY-324 (java.net.NetPermission should define 'serialVersionUID')