//
// 
// Copyright  1990-2006 Sun Microsystems, Inc. All Rights Reserved.
// DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
// 
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License version
// 2 only, as published by the Free Software Foundation. 
// 
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License version 2 for more details (a copy is
// included at /legal/license.txt). 
// 
// You should have received a copy of the GNU General Public License
// version 2 along with this work; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
// 02110-1301 USA 
// 
// Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
// Clara, CA 95054 or visit www.sun.com if you need additional
// information or have any questions. 
//


// Standard extensions get all permissions by default

grant codeBase "file://${java.home}/lib/ext/*" {
	permission java.security.AllPermission;
};

// default permissions granted to all domains

grant { 
	// Allows any thread to stop itself using the java.lang.Thread.stop()
	// method that takes no argument.
	// Note that this permission is granted by default only to remain
	// backwards compatible.
	// It is strongly recommended that you either remove this permission
	// from this policy file or further restrict it to code sources
	// that you specify, because Thread.stop() is potentially unsafe.
	// See "http://java.sun.com/notes" for more information.
	permission java.lang.RuntimePermission "stopThread";

	// allows anyone to listen on un-privileged ports
	permission java.net.SocketPermission "localhost:1024-", "listen";

	// "standard" properies that can be read by anyone

	permission java.util.PropertyPermission "java.version", "read";
	permission java.util.PropertyPermission "java.vendor", "read";
	permission java.util.PropertyPermission "java.vendor.url", "read";
	permission java.util.PropertyPermission "java.class.version", "read";
	permission java.util.PropertyPermission "os.name", "read";
	permission java.util.PropertyPermission "os.version", "read";
	permission java.util.PropertyPermission "os.arch", "read";
	permission java.util.PropertyPermission "file.separator", "read";
	permission java.util.PropertyPermission "path.separator", "read";
	permission java.util.PropertyPermission "line.separator", "read";

	permission java.util.PropertyPermission "java.specification.version", "read";
	permission java.util.PropertyPermission "java.specification.vendor", "read";
	permission java.util.PropertyPermission "java.specification.name", "read";

	permission java.util.PropertyPermission "java.vm.specification.version", "read";
	permission java.util.PropertyPermission "java.vm.specification.vendor", "read";
	permission java.util.PropertyPermission "java.vm.specification.name", "read";
	permission java.util.PropertyPermission "java.vm.version", "read";
	permission java.util.PropertyPermission "java.vm.vendor", "read";
	permission java.util.PropertyPermission "java.vm.name", "read";

	permission java.util.PropertyPermission "user.dir", "read";

	permission java.util.PropertyPermission "com.sun.apps.useSunRR", "read";
	permission java.util.PropertyPermission "com.sun.apps.debugSunRR", "read";

        permission java.util.PropertyPermission "test.dir", "write";
        permission java.util.PropertyPermission "test.src", "write";

        // PBP's profile specific properties.  
        // Should never be security constrained.

        permission java.util.PropertyPermission "java.awt.AlphaComposite.SRC_OVER.isRestricted", "read"; 
        permission java.util.PropertyPermission "java.awt.Graphics2D.setStroke.BasicStroke.isRestricted", "read";
        permission java.util.PropertyPermission "java.awt.Component.setCursor.isRestricted", "read";
        permission java.util.PropertyPermission "java.awt.Frame.setSize.isRestricted", "read";
        permission java.util.PropertyPermission "java.awt.Frame.setResizable.isRestricted", "read";
        permission java.util.PropertyPermission "java.awt.Frame.setLocation.isRestricted", "read";
        permission java.util.PropertyPermission "java.awt.Frame.setTitle.isRestricted", "read";
        permission java.util.PropertyPermission "java.awt.Frame.setUndecorated.isRestricted", "read";
        permission java.util.PropertyPermission "java.awt.event.MouseEvent.isRestricted", "read";
        permission java.util.PropertyPermission "java.awt.event.MouseEvent.supportLevel", "read";
        permission java.util.PropertyPermission "java.awt.event.KeyEvent.isRestricted", "read";
        permission java.util.PropertyPermission "java.awt.event.KeyEvent.supportMask", "read";
        permission java.util.PropertyPermission "java.awt.keyEventCoalesce", "read"; 

	permission java.util.PropertyPermission "java.awt.PaintLock", "read";
	permission java.util.PropertyPermission "java.awt.logodisptime", "read";
	permission java.util.PropertyPermission "java.awt.loadpic", "read";
	permission java.util.PropertyPermission "java.awt.defaultlogoloc", "read";
	permission java.util.PropertyPermission "java.awt.DefaultBackgroundColor", "read";

	permission javax.microedition.xlet.ixc.IxcPermission "*", "bind";
	permission javax.microedition.xlet.ixc.IxcPermission "*", "lookup";
};

