+2005-04-26 Jeroen Frijters <jeroen@frijters.net>
+
+ * java/security/Security.java,
+ java/security/cert/X509CRLSelector.java,
+ java/security/cert/X509CertSelector.java:
+ Modified to use SystemProperties.
+
2005-04-26 Michael Koch <konqueror@gmx.de>
* java/lang/System.java
package java.security;
-import gnu.java.security.action.GetPropertyAction;
+import gnu.classpath.SystemProperties;
import gnu.classpath.Configuration;
static
{
- GetPropertyAction getProp = new GetPropertyAction("gnu.classpath.home.url");
- String base = (String) AccessController.doPrivileged(getProp);
- getProp = new GetPropertyAction("gnu.classpath.vm.shortname");
- String vendor = (String) AccessController.doPrivileged(getProp);
+ String base = SystemProperties.getProperty("gnu.classpath.home.url");
+ String vendor = SystemProperties.getProperty("gnu.classpath.vm.shortname");
// Try VM specific security file
boolean loaded = loadProviders (base, vendor);
package java.security.cert;
-import gnu.java.security.action.GetPropertyAction;
+import gnu.classpath.SystemProperties;
import gnu.java.security.der.DERReader;
import gnu.java.security.der.DERValue;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigInteger;
-import java.security.AccessController;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
public String toString()
{
StringBuffer str = new StringBuffer(X509CRLSelector.class.getName());
- GetPropertyAction getProp = new GetPropertyAction("line.separator");
- String nl = (String) AccessController.doPrivileged(getProp);
+ String nl = SystemProperties.getProperty("line.separator");
String eol = ";" + nl;
str.append(" {").append(nl);
package java.security.cert;
+import gnu.classpath.SystemProperties;
import gnu.java.security.OID;
-import gnu.java.security.action.GetPropertyAction;
import java.io.IOException;
import java.math.BigInteger;
-import java.security.AccessController;
import java.security.KeyFactory;
import java.security.PublicKey;
import java.security.spec.X509EncodedKeySpec;
public String toString()
{
StringBuffer str = new StringBuffer(X509CertSelector.class.getName());
- GetPropertyAction getProp = new GetPropertyAction("line.separator");
- String nl = (String) AccessController.doPrivileged(getProp);
+ String nl = SystemProperties.getProperty("line.separator");
String eol = ";" + nl;
str.append(" {").append(nl);
if (cert != null)