diff options
author | admiyo <admiyo@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2011-11-21 18:37:47 +0000 |
---|---|---|
committer | admiyo <admiyo@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2011-11-21 18:37:47 +0000 |
commit | 22bb099f2020e2dc596b1ee5b843165edc7a30d6 (patch) | |
tree | 65d9c6849663dfdc543de1c0f06f8402a41b201e /pki/base/common/src/com/netscape/cms/authentication | |
parent | ed76e714f94e8aa60aa5c4b4a8cf386a582bf02d (diff) | |
download | pki-22bb099f2020e2dc596b1ee5b843165edc7a30d6.tar.gz pki-22bb099f2020e2dc596b1ee5b843165edc7a30d6.tar.xz pki-22bb099f2020e2dc596b1ee5b843165edc7a30d6.zip |
Dead code removal
This patch removes all of the locations that Eclipse identified as Dead code.
Only the Eclipse automated cleanups were performed, which means that some of the locations which were in *if* blocks still have the corresponding brackets around them.
These ensure that the original variable semantics weren't changed, but are safe to remove in the future.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@2296 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/common/src/com/netscape/cms/authentication')
-rw-r--r-- | pki/base/common/src/com/netscape/cms/authentication/CMCAuth.java | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/pki/base/common/src/com/netscape/cms/authentication/CMCAuth.java b/pki/base/common/src/com/netscape/cms/authentication/CMCAuth.java index e102f18f8..b7f7fb346 100644 --- a/pki/base/common/src/com/netscape/cms/authentication/CMCAuth.java +++ b/pki/base/common/src/com/netscape/cms/authentication/CMCAuth.java @@ -906,23 +906,9 @@ public class CMCAuth implements IAuthManager, IExtendedPluginInfo, // find from internaldb if it's ca. (ra does not have that.) // find from internaldb usrgrp info - if (cert == null) { + { // find from certDB si.verify(digest, id); - } else { - PublicKey signKey = cert.getPublicKey(); - PrivateKey.Type keyType = null; - String alg = signKey.getAlgorithm(); - - if (alg.equals("RSA")) { - keyType = PrivateKey.RSA; - } else if (alg.equals("DSA")) { - keyType = PrivateKey.DSA; - } else { - } - PK11PubKey pubK = PK11PubKey.fromRaw(keyType, ((X509Key) signKey).getKey()); - - si.verify(digest, id, pubK); } } // |