Re: Policy help ?

Jan Luehe (Jan.Luehe@eng.sun.com)
Fri, 12 Mar 1999 10:27:08 -0800 (PST)

Date: Fri, 12 Mar 1999 10:27:08 -0800 (PST)
From: Jan Luehe <Jan.Luehe@eng.sun.com>
Subject: Re: Policy help ?
To: java-security@java.sun.com, Andrew.Sharp@t-mi.com

Andrew:

You need to

1. create a subclass of java.security.Policy
2. implement the abstract methods of the Policy class
3. edit your security properties file and change this line

policy.provider=sun.security.provider.PolicyFile

to reference your own Policy class implementation
rather than the default implementation that we provide.

The security properties file is located in

<java-home>\lib\security\java.security [Win32]
<java-home>/lib/security/java.security [Solaris]

Here <java-home> refers to the directory where the JRE
was installed. For example, if you have JDK 1.2 installed on Solaris, you
need to edit the following file:

jdk1.2/jre/lib/security/java.security

Similarly, if you have JRE 1.2 installed on Solaris, you need to edit
this file:

jre1.2/lib/security

Hope this helps.

Jan

> From: Andrew Sharp <Andrew.Sharp@t-mi.com>
> To: "'java-security@java.sun.com'" <java-security@java.sun.com>
> Subject: Policy help ?
> Date: Fri, 12 Mar 1999 12:15:04 -0000
> MIME-Version: 1.0
>
> Hi,
>
> I believe that what I'm trying to do is quite common. Wonder if anyone has a
> small piece of example code...
>
> I want to use 1.2 Security API to get my policy information from some place
> other than a policy file - e.g. a database. I don't need any JDBC specifics,
> I just need to know how to make the framework do it. I believe it is about
> deriving your own Policy class but I haven't been able to get my attempts to
> work.
>
> Many thanks
>
> Andrew.
>
> --
> The contents of this e-mail are intended for the named recipient(s) only. It
> may contain privileged information and must not be copied or distributed to
> any other person and no other person may take any action in reliance upon it.
> Tokyo-Mitsubishi International plc ("TMI") reserves the right to monitor all
> e-mail communications passing through its network.
> TMI is regulated by SFA.