From a3c83b5f63c9ced5c527cb3b9306d390c3d192ec Mon Sep 17 00:00:00 2001 From: Abhishek Koneru Date: Thu, 5 Jul 2012 10:22:37 -0400 Subject: SE_BAD_FIELD, MIGHT_IGNORE , STATIC_INNER_CLASS --- .../netscape/cmsutil/http/JssSSLSocketFactory.java | 2 +- .../com/netscape/cmsutil/scep/CRSPKIMessage.java | 32 ++++++++++------------ 2 files changed, 15 insertions(+), 19 deletions(-) (limited to 'base/util/src/com') diff --git a/base/util/src/com/netscape/cmsutil/http/JssSSLSocketFactory.java b/base/util/src/com/netscape/cmsutil/http/JssSSLSocketFactory.java index aca93b2f0..fcf5fc16e 100644 --- a/base/util/src/com/netscape/cmsutil/http/JssSSLSocketFactory.java +++ b/base/util/src/com/netscape/cmsutil/http/JssSSLSocketFactory.java @@ -169,7 +169,7 @@ public class JssSSLSocketFactory implements ISocketFactory { public void log(int level, String msg) { } - class ClientHandshakeCB implements SSLHandshakeCompletedListener { + static class ClientHandshakeCB implements SSLHandshakeCompletedListener { Object sc; public ClientHandshakeCB(Object sc) { diff --git a/base/util/src/com/netscape/cmsutil/scep/CRSPKIMessage.java b/base/util/src/com/netscape/cmsutil/scep/CRSPKIMessage.java index afde8b6c1..48fee56fc 100644 --- a/base/util/src/com/netscape/cmsutil/scep/CRSPKIMessage.java +++ b/base/util/src/com/netscape/cmsutil/scep/CRSPKIMessage.java @@ -255,32 +255,28 @@ public class CRSPKIMessage { // These functions are used to initialize the various blobs - public void makeSignedData(int version, - byte[] certificate, String hashAlgorithm) { + public void makeSignedData(int version, byte[] certificate, String hashAlgorithm) { - try { - SET digest_algs = new SET(); + SET digest_algs = new SET(); - digest_algs.addElement(new AlgorithmIdentifier(getAlgorithmOID(hashAlgorithm), new NULL())); + digest_algs.addElement(new AlgorithmIdentifier(getAlgorithmOID(hashAlgorithm), new NULL())); - // SET certs = new SET(); - // certs.addElement(new ANY(certificate)); + // SET certs = new SET(); + // certs.addElement(new ANY(certificate)); - SET sis = new SET(); + SET sis = new SET(); - sis.addElement(si); + sis.addElement(si); - ContentInfo data = this.data; + ContentInfo data = this.data; - this.sd = new SignedData( - digest_algs, - data, - null, // don't send the certs, he already has them - null, // crl's - sis); + this.sd = new SignedData( + digest_algs, + data, + null, // don't send the certs, he already has them + null, // crl's + sis); - } catch (Exception e) { - } } public byte[] getResponse() throws IOException, InvalidBERException { -- cgit