summaryrefslogtreecommitdiffstats
path: root/base/util/src/netscape/security/x509/X509Key.java
diff options
context:
space:
mode:
authorAbhishek Koneru <akoneru@redhat.com>2012-07-11 14:54:32 -0400
committerEndi Sukma Dewata <edewata@redhat.com>2012-07-18 10:41:46 -0500
commit6cd64781a7cda192bc2b0a555974037fd16cc2c5 (patch)
tree1145e67bb8b736e47c11dd3485d635e53b1931eb /base/util/src/netscape/security/x509/X509Key.java
parent70e45db3cfcf01b3b36fe619b03cf604e6666c91 (diff)
downloadpki-6cd64781a7cda192bc2b0a555974037fd16cc2c5.tar.gz
pki-6cd64781a7cda192bc2b0a555974037fd16cc2c5.tar.xz
pki-6cd64781a7cda192bc2b0a555974037fd16cc2c5.zip
Misc Fixes Remaining part of the code.
Diffstat (limited to 'base/util/src/netscape/security/x509/X509Key.java')
-rw-r--r--base/util/src/netscape/security/x509/X509Key.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/base/util/src/netscape/security/x509/X509Key.java b/base/util/src/netscape/security/x509/X509Key.java
index 5c8ac3a88..7af1036ea 100644
--- a/base/util/src/netscape/security/x509/X509Key.java
+++ b/base/util/src/netscape/security/x509/X509Key.java
@@ -354,9 +354,7 @@ public class X509Key implements PublicKey {
* Serialization write ... X.509 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());
}
@@ -364,17 +362,12 @@ public class X509Key implements PublicKey {
* Serialization read ... X.509 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: " +
- e.getMessage());
+ throw new IOException("deserialized key is invalid: " + e.getMessage());
}
}