/[classpath]/classpath/java/security/Policy.java
ViewVC logotype

Diff of /classpath/java/security/Policy.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by mark, Tue Jan 22 22:27:00 2002 UTC revision 1.5 by cbj, Mon Mar 25 05:12:19 2002 UTC
# Line 85  public abstract class Policy Line 85  public abstract class Policy
85    // FIXME: The class name of the Policy provider should really be sourced    // FIXME: The class name of the Policy provider should really be sourced
86    // from the "java.security" configuration file. For now, just hard-code    // from the "java.security" configuration file. For now, just hard-code
87    // a stub implementation.    // a stub implementation.
88    static private Policy currentPolicy    static private Policy currentPolicy = null;
89      = new gnu.java.security.provider.DefaultPolicy();    static
90      {
91        String pp = System.getProperty ("policy.provider");
92        if (pp != null)
93          try
94            {
95              currentPolicy = (Policy)Class.forName(pp).newInstance();
96            }
97          catch (Exception _)
98            {
99              currentPolicy = null;
100            }
101        if (currentPolicy == null)
102          currentPolicy = new gnu.java.security.provider.DefaultPolicy();
103      }
104      
105    /**    /**
106       Constructs a new Policy class.       Constructs a new Policy class.
107     */     */

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26