Code example for AllPermission

0
		URL rootURL = new URL("file", null, rootDir);
 
		ProtectionDomain protectionDomain = new ProtectionDomain(
			new CodeSource(rootURL, new Certificate[0]), new Permissions());
 
		if (policy.implies(protectionDomain, new AllPermission())) {
			throw new IllegalStateException(
				"The plugin's Java policy tried to declared all " + 
					"permissions"); 
		} 
	} 
 
	protected Checker getChecker(Class<? extends Permission> clazz) {
		return _checkers.get(clazz.getName());
	} 
 
	protected Provider getProvider() {
		String providerName = "SUN";
 
		if (JavaDetector.isIBM() && JavaDetector.isJDK6()) {