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 |
*/ |
*/ |