70 |
{ |
{ |
71 |
String base = System.getProperty ("gnu.classpath.home.url"); |
String base = System.getProperty ("gnu.classpath.home.url"); |
72 |
String vendor = System.getProperty ("gnu.classpath.vm.shortname"); |
String vendor = System.getProperty ("gnu.classpath.vm.shortname"); |
73 |
|
|
74 |
// Try VM specific security file |
// Try VM specific security file |
75 |
boolean loaded = loadProviders (base, vendor); |
boolean loaded = loadProviders (base, vendor); |
76 |
|
|
77 |
// Append classpath standard provider if possible |
// Append classpath standard provider if possible |
78 |
if (!loadProviders (base, "classpath") |
if (!loadProviders (base, "classpath") |
79 |
&& !loaded |
&& !loaded |
80 |
&& providers.size() == 0) |
&& providers.size() == 0) |
81 |
{ |
{ |
82 |
// No providers found |
// No providers found and both security files failed to load properly. |
|
// and both security files failed to load properly. |
|
83 |
System.err.println |
System.err.println |
84 |
("WARNING: could not properly read security provider files:"); |
("WARNING: could not properly read security provider files:"); |
85 |
System.err.println |
System.err.println |
90 |
(" Falling back to standard GNU security provider"); |
(" Falling back to standard GNU security provider"); |
91 |
providers.addElement (new gnu.java.security.provider.Gnu()); |
providers.addElement (new gnu.java.security.provider.Gnu()); |
92 |
} |
} |
93 |
} |
} |
94 |
|
|
95 |
// This class can't be instantiated. |
// This class can't be instantiated. |
96 |
private Security() |
private Security() |
475 |
* provider that supplied a CertificateFactory implementation for X.509 |
* provider that supplied a CertificateFactory implementation for X.509 |
476 |
* certificates.</p></li> |
* certificates.</p></li> |
477 |
* |
* |
478 |
* <li><p><crypto_service>.<algorithm_or_type><attribute_name>:<attribute_value></p> |
* <li><p><crypto_service>.<algorithm_or_type> <attribute_name>:<attribute_value></p> |
479 |
* <p>The cryptographic service name must not contain any dots. There must |
* <p>The cryptographic service name must not contain any dots. There must |
480 |
* be one or more space charaters between the the <algorithm_or_type> |
* be one or more space charaters between the the <algorithm_or_type> |
481 |
* and the <attribute_name>.</p> |
* and the <attribute_name>.</p> |