summaryrefslogtreecommitdiffstats
path: root/base/util/src/netscape/security/extensions
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-03-28 00:36:32 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-03-28 13:19:26 -0500
commit1c8437891cdfe5580e09c495f79d81334ed0c2c0 (patch)
tree5a3ca8c31ca13c2809cccd3ac73c5791fe491163 /base/util/src/netscape/security/extensions
parente744c37ab1510f87ed4b5b3eafeb3758f1d0e30f (diff)
downloadpki-1c8437891cdfe5580e09c495f79d81334ed0c2c0.tar.gz
pki-1c8437891cdfe5580e09c495f79d81334ed0c2c0.tar.xz
pki-1c8437891cdfe5580e09c495f79d81334ed0c2c0.zip
Replaced deprecated AlgorithmId.getAlgorithmId().
The deprecated getAlgorithmId() method in AlgorithmId has been replaced with get(). Ticket #3
Diffstat (limited to 'base/util/src/netscape/security/extensions')
-rw-r--r--base/util/src/netscape/security/extensions/CertInfo.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/base/util/src/netscape/security/extensions/CertInfo.java b/base/util/src/netscape/security/extensions/CertInfo.java
index ab88ec8ab..47a138253 100644
--- a/base/util/src/netscape/security/extensions/CertInfo.java
+++ b/base/util/src/netscape/security/extensions/CertInfo.java
@@ -65,14 +65,13 @@ public class CertInfo extends X509CertInfo {
SERIALIZE_SERIALNO =
new CertificateSerialNumber(new BigInteger("0"));
SERIALIZE_ALGOR =
- new CertificateAlgorithmId(
- AlgorithmId.getAlgorithmId("MD5withRSA"));
+ new CertificateAlgorithmId(AlgorithmId.get("MD5withRSA"));
} catch (IOException e) {
- // should never happen. If does, system is hosed.
+ // should never happen. If does, system is hosed.
System.out.println("**** Impossible Error encountered ****");
throw new RuntimeException(e.toString());
} catch (NoSuchAlgorithmException e) {
- // should never happen. If does, system is hosed.
+ // should never happen. If does, system is hosed.
System.out.println("**** Impossible Error encountered ****");
throw new RuntimeException(e.toString());
}
@@ -111,7 +110,7 @@ public class CertInfo extends X509CertInfo {
certinfo.set(X509CertInfo.SUBJECT, SERIALIZE_SUBJECT);
}
// key is set later in the request.
- } // these exceptions shouldn't happen here unless the
+ } // these exceptions shouldn't happen here unless the
// whole process is hosed.
catch (CertificateException e) {
} catch (IOException e) {