Date: Thu, 30 Jul 1998 12:03:56 -0700 (PDT)
From: schemers@Eng
To: Robert Watson <rwatson@tis.com>
Subject: Re: java 1.2beta4 -- -usepolicy removed?
In-Reply-To: <Pine.BSF.3.96.980730123350.1148E-100000@celadon.hq.tis.com>
Robert Watson writes:
>
> -usepolicy is the documented mechanism for defining the policy file from
> the command line in the Java 1.2 Security book, and described in the
> architecture documents.
The 1.2 security book was based on beta3, and some things have
changed. The way to pass a policy on the command line is described in:
http://java.sun.com/products/jdk/1.2/docs/guide/security/index.html
In particular:
http://java.sun.com/products/jdk/1.2/docs/guide/security/PolicyFiles.html
> Also, we have observed that java.security.PolicyFile is no longer the
> policy file used, instead sun.security.provider.PolicyFile. The source
> code for this class is also not available in the src.jar archive, unlike
> the source for java.security.PolicyFile (now no longer used).
We've tried to be consistent with all the other sun security providers
and moved it to sun.security.provider.*. By doing so we also
were able to make sure that someone could write their own policy
object that had the same functionality as ours without having to be
in the java.security package. Before we moved it it was using package
private methods. I think there is a way to get access to the source
for sun.* classes, but I think its for non-commerical use only unless
you license the JDK.
roland