Code example for Permission

Methods: getActionsgetName

0
    } 
 
    public void checkPermission(Permission perm) {
        if (acc != null) {
            // Ughhh. Eclipse class path leak :-/ 
            if (perm instanceof FilePermission && "read".equals(perm.getActions())) {
                String name = perm.getName();
                if (name.indexOf("org.eclipse.osgi") > 0 
                        && (name.endsWith("javax.xml.parsers.DocumentBuilderFactory")
                                || name.endsWith("javax.xml.datatype.DatatypeFactory"))) {
                    return; 
                } 
            } 
            try { 
                checkPermission(perm, acc);
            } catch (final SecurityException e) {
                failedPermissions.add(perm);
                throw e;
            } 
        } 
    } 
 
Connect your IDE to all the code out there  Get Codota for Java