summaryrefslogtreecommitdiffstats
path: root/base/util/src/netscape/security/pkcs
diff options
context:
space:
mode:
authorAbhishek Koneru <akoneru@redhat.com>2012-07-19 12:46:10 -0400
committerEndi Sukma Dewata <edewata@redhat.com>2012-07-25 10:41:57 -0500
commitca401c4f9e30ab59cb12fc4098aec21b660f686f (patch)
tree9a4a349bcfaa195960801264ca36e639b896cb89 /base/util/src/netscape/security/pkcs
parent2a3125d54365bf1806633c3301ce59fdb21461e4 (diff)
downloadpki-ca401c4f9e30ab59cb12fc4098aec21b660f686f.tar.gz
pki-ca401c4f9e30ab59cb12fc4098aec21b660f686f.tar.xz
pki-ca401c4f9e30ab59cb12fc4098aec21b660f686f.zip
Patch 25 - Misc Fixes
Diffstat (limited to 'base/util/src/netscape/security/pkcs')
-rw-r--r--base/util/src/netscape/security/pkcs/PKCS8Key.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/base/util/src/netscape/security/pkcs/PKCS8Key.java b/base/util/src/netscape/security/pkcs/PKCS8Key.java
index db1d6b275..8806cd3fb 100644
--- a/base/util/src/netscape/security/pkcs/PKCS8Key.java
+++ b/base/util/src/netscape/security/pkcs/PKCS8Key.java
@@ -331,9 +331,7 @@ public class PKCS8Key implements PrivateKey {
* Serialization write ... PKCS#8 keys serialize as
* themselves, and they're parsed when they get read back.
*/
- private synchronized void
- writeObject(java.io.ObjectOutputStream stream)
- throws IOException {
+ private void writeObject(java.io.ObjectOutputStream stream) throws IOException {
stream.write(getEncoded());
}
@@ -341,12 +339,9 @@ public class PKCS8Key implements PrivateKey {
* Serialization read ... PKCS#8 keys serialize as
* themselves, and they're parsed when they get read back.
*/
- private synchronized void readObject(ObjectInputStream stream)
- throws IOException {
-
+ private void readObject(ObjectInputStream stream) throws IOException {
try {
decode(stream);
-
} catch (InvalidKeyException e) {
e.printStackTrace();
throw new IOException("deserialized key is invalid: " +