javacommons/security/javasrc/com/nokia/mj/impl/security/packageprotection/PackageNames.java
changeset 21 2a9601315dfc
child 23 98ccebc37403
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 package com.nokia.mj.impl.security.packageprotection;
       
    19 
       
    20 /**
       
    21  * This class defines the names of the java packages which
       
    22  * are protected/restricted
       
    23  */
       
    24 public final class PackageNames
       
    25 {
       
    26     public final static String[] protectedPackages = new String[]
       
    27     {
       
    28         /* these have been taken from the implementation package */
       
    29         "com.nokia.mj.impl.",
       
    30         "com.sun.j2mews.xml.rpc.",
       
    31         "org.eclipse.ercp.swt.expanded.internal.",
       
    32         "org.eclipse.ercp.swt.mobile.internal.",
       
    33         "org.eclipse.swt.internal.",
       
    34         "org.eclipse.swt.widgets.Internal_PackageSupport",
       
    35         "org.eclipse.swt.graphics.Internal_GfxPackageSupport",
       
    36         "org.eclipse.ercp.swt.mobile.Internal_MobilePackageSupport",
       
    37         "com.nokia.amms.",
       
    38         "com.intel.bluetooth.",
       
    39         "com.nokia.microedition.",
       
    40         "com.nokia.mid.impl.",
       
    41         "com.nokia.mid.ui.impl.",
       
    42         "com.nokia.satsa.",
       
    43         "com.sun.ukit.jaxp.",
       
    44         "com.symbian.epoc.",
       
    45         "com.symbian.gcf.",
       
    46         "com.symbian.j2me.",
       
    47         "com.symbian.lcdjava.",
       
    48         "com.symbian.midp.",
       
    49         "com.symbian.util.",
       
    50         "java.util.PropertyPermission",
       
    51         "java.lang.RuntimePermission",
       
    52         "javax.microedition.io.CommProtocolPermission",
       
    53         "javax.microedition.io.DatagramProtocolPermission",
       
    54         "javax.microedition.io.FileProtocolPermission",
       
    55         "javax.microedition.io.GCFPermission",
       
    56         "javax.microedition.io.HttpProtocolPermission",
       
    57         "javax.microedition.io.HttpsProtocolPermission",
       
    58         "javax.microedition.io.SocketProtocolPermission",
       
    59         "javax.microedition.io.SSLProtocolPermission",
       
    60         "java.security.AccessControlException",
       
    61         "java.security.BasicPermission",
       
    62         "java.security.PermissionCollection",
       
    63         "java.security.Permission",
       
    64         "com.ibm.oti.util.NumberConverter"
       
    65     };
       
    66 
       
    67     public final static String[] restrictedPackages = new String[]
       
    68     {
       
    69         "org.eclipse.ercp.swt.mobile.",    //eSWT
       
    70         "org.eclipse.swt.browser.",        //eSWT
       
    71         "org.eclipse.swt.dnd.",            //eSWT
       
    72         "org.eclipse.swt.events.",         //eSWT
       
    73         "org.eclipse.swt.graphics.",       //eSWT
       
    74         "org.eclipse.swt.layout.",         //eSWT
       
    75         "org.eclipse.swt.widgets.",        //eSWT
       
    76         "org.eclipse.ercp.swt.midp.",      //eSWT
       
    77         "org.w3c.dom.",                    //m2g
       
    78         "org.xml.sax.",                     //WebServices
       
    79         "com.nokia.mid.activeidle.",       //Nokia interfaces
       
    80         "com.nokia.mid.iapinfo.",          //Nokia interfaces
       
    81         "com.nokia.mid.newmailled.",       //Nokia interfaces
       
    82         "com.nokia.mid.sasf.",             //Nokia interfaces
       
    83         "com.nokia.mid.softnotification.", //Nokia interfaces
       
    84         "com.nokia.mid.sound.",            //Nokia interfaces
       
    85         "com.nokia.mid.ui.",               //Nokia interfaces
       
    86         "java.security."                   //SATSA CRYPTO
       
    87     };
       
    88 
       
    89 }