CodeSource cs = null;
permissions.add(new XYZPolicyEntry(
new PropertyPermission("java.version", "read"), cs));
// http://piccolo/ sdo
try {
if (ks != null) {
URL u = new URL("http://piccolo/");
// In 1.2 beta 4, we need the certificates to initialize
// the code source (instead of the public keys, which is
// what we used earlier
java.security.cert.Certificate c[] = ks.getCertificateChain("sdo");
cs = new CodeSource(u, c);
permissions.add(new XYZPolicyEntry(
new PropertyPermission("os.arch", "read"), cs));
}
} catch (Exception e) {}