//----------------------------BEGIN LICENSE----------------------------
/* 
 * Willow : the Open Source WorkFlow Project
 * Distributable under GNU LGPL license by gun.org
 *
 * Copyright (C) 2004-2010  huihoo.org 
 * Copyright (C) 2004-2010  ZosaTapo <dertyang@hotmail.com> 
 * 
 * ====================================================================
 * Project Homepage : http://www.huihoo.org/willow
 * Source Forge     : http://sourceforge.net/projects/huihoo
 * Mailing list     : willow@lists.sourceforge.net 
 */
//----------------------------END  LICENSE-----------------------------

package org.huihoo.willow.naming;

import java.security.BasicPermission;

/**
 * Java SecurityManager Permission class for JNDI name based file resources
 * <p>
 * The JndiPermission extends the BasicPermission.
 * The permission name is a full or partial jndi resource name.
 * An * can be used at the end of the name to match all named
 * resources that start with name.  There are no actions.</p>
 * <p>
 * Example that grants permission to read all JNDI file based resources:
 * <li> permission org.huihoo.willow.naming.JndiPermission "*";</li>
 * </p>
 *
 */

public final class JndiPermission extends BasicPermission
{

	// ----------------------------------------------------------- Constructors

	/**
	 * Creates a new JndiPermission with no actions
	 *
	 * @param String - JNDI resource path name
	 */
	public JndiPermission(String name)
	{
		super(name);
	}

	/**
	 * Creates a new JndiPermission with actions
	 *
	 * @param String - JNDI resource path name
	 * @param String - JNDI actions (none defined)
	 */
	public JndiPermission(String name, String actions)
	{
		super(name, actions);
	}

}
