summaryrefslogtreecommitdiff
path: root/gnu/java/security/key/rsa/GnuRSAKey.java
diff options
context:
space:
mode:
authorVivek Lakshmanan <vivekl@redhat.com>2006-07-11 16:03:59 +0000
committerVivek Lakshmanan <vivekl@redhat.com>2006-07-11 16:03:59 +0000
commita7aafd1be0d9c5f1381b98732afebdb1e257547d (patch)
treea4869ba8a1dd5bcc28c0d476c2beea0b0b687d99 /gnu/java/security/key/rsa/GnuRSAKey.java
parent76ae632871bfbca8c6cf911a5f67a19d6aec4d76 (diff)
downloadclasspath-a7aafd1be0d9c5f1381b98732afebdb1e257547d.tar.gz
2006-07-10 Vivek Lakshmanan <vivekl@redhat.com>
PR 27649: * gnu/classpath/debug/Simple1LineFormatter.java: Use AccessController.doPrivileged instead of SystemProperties.getProperty. * gnu/classpath/debug/SystemLogger.java: Likewise. * gnu/java/security/PolicyFile.java: Likewise and cut unnecessary repeated getProperty calls for "file.seperator". (refresh): Since already in privileged block, call System.getProperty instead of SystemProperties.getProperty. * gnu/java/security/key/dss/DSSKey.java (toString): Use AccessController.doPrivileged instead of SystemProperties.getProperty. * gnu/java/security/key/dss/DSSPrivateKey.java (toString): Likewise. * gnu/java/security/key/dss/DSSPublicKey.java (toString): Likewise. * gnu/java/security/key/rsa/GnuRSAKey.java (toString): Likewise. * gnu/java/security/key/rsa/GnuRSAPrivateKey.java (toString): Likewise. * gnu/java/security/key/rsa/GnuRSAPublicKey.java (toString): Likewise. * gnu/javax/crypto/sasl/plain/PasswordFile.java: Likewise. * gnu/javax/crypto/key/dh/GnuDHKey.java (toString): Likewise. * gnu/javax/crypto/key/dh/GnuDHPrivateKey.java (toString): Likewise. * gnu/javax/crypto/key/dh/GnuDHPublicKey.java (toString): Likewise.
Diffstat (limited to 'gnu/java/security/key/rsa/GnuRSAKey.java')
-rw-r--r--gnu/java/security/key/rsa/GnuRSAKey.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/java/security/key/rsa/GnuRSAKey.java b/gnu/java/security/key/rsa/GnuRSAKey.java
index 6ff740184..4bdce4011 100644
--- a/gnu/java/security/key/rsa/GnuRSAKey.java
+++ b/gnu/java/security/key/rsa/GnuRSAKey.java
@@ -38,11 +38,12 @@ exception statement from your version. */
package gnu.java.security.key.rsa;
-import gnu.classpath.SystemProperties;
import gnu.java.security.Registry;
+import gnu.java.security.action.GetPropertyAction;
import gnu.java.security.util.FormatUtil;
import java.math.BigInteger;
+import java.security.AccessController;
import java.security.Key;
import java.security.interfaces.RSAKey;
@@ -160,7 +161,8 @@ public abstract class GnuRSAKey
{
if (str == null)
{
- String ls = SystemProperties.getProperty("line.separator");
+ String ls = (String) AccessController.doPrivileged
+ (new GetPropertyAction("line.separator"));
str = new StringBuilder(ls)
.append("defaultFormat=").append(defaultFormat).append(",").append(ls)
.append("n=0x").append(n.toString(16)).append(",").append(ls)