summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/cmscore/authentication/SSLClientCertAuthentication.java
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-04-05 15:08:18 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-04-09 10:22:03 -0500
commit3f24e55923fc986af4c6a08b2b8d45704a905627 (patch)
tree716415853b5676b801f6707634305b59b9af8603 /base/common/src/com/netscape/cmscore/authentication/SSLClientCertAuthentication.java
parent7c7b9d023cd466c1771068badc020dab36beb553 (diff)
downloadpki-3f24e55923fc986af4c6a08b2b8d45704a905627.tar.gz
pki-3f24e55923fc986af4c6a08b2b8d45704a905627.tar.xz
pki-3f24e55923fc986af4c6a08b2b8d45704a905627.zip
Removed unnecessary type casts.
Unnecessary type casts have been removed using Eclipse Quick Fix. Ticket #134
Diffstat (limited to 'base/common/src/com/netscape/cmscore/authentication/SSLClientCertAuthentication.java')
-rw-r--r--base/common/src/com/netscape/cmscore/authentication/SSLClientCertAuthentication.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/common/src/com/netscape/cmscore/authentication/SSLClientCertAuthentication.java b/base/common/src/com/netscape/cmscore/authentication/SSLClientCertAuthentication.java
index 183cebcfb..4906d5c50 100644
--- a/base/common/src/com/netscape/cmscore/authentication/SSLClientCertAuthentication.java
+++ b/base/common/src/com/netscape/cmscore/authentication/SSLClientCertAuthentication.java
@@ -113,7 +113,7 @@ public class SSLClientCertAuthentication implements IAuthManager {
mCA = (ICertificateAuthority) CMS.getSubsystem("ca");
if (mCA != null) {
- mCertDB = (ICertificateRepository) mCA.getCertificateRepository();
+ mCertDB = mCA.getCertificateRepository();
}
X509CertImpl clientCert = (X509CertImpl) x509Certs[0];
@@ -121,7 +121,7 @@ public class SSLClientCertAuthentication implements IAuthManager {
BigInteger serialNum = null;
try {
- serialNum = (BigInteger) clientCert.getSerialNumber();
+ serialNum = clientCert.getSerialNumber();
//serialNum = new BigInteger(s.substring(2), 16);
} catch (NumberFormatException e) {
throw new EAuthUserError(CMS.getUserMessage("CMS_AUTHENTICATION_INVALID_ATTRIBUTE_VALUE",
@@ -134,7 +134,7 @@ public class SSLClientCertAuthentication implements IAuthManager {
ICertRecord record = null;
try {
- record = (ICertRecord) mCertDB.readCertificateRecord(serialNum);
+ record = mCertDB.readCertificateRecord(serialNum);
} catch (EBaseException ee) {
if (Debug.ON) {
Debug.trace(ee.toString());