Merge "Sonar fixes related to exceptions"
[aaf/authz.git] / auth / auth-certman / src / main / java / org / onap / aaf / auth / cm / cert / CSRMeta.java
index 2b763f7..f9fcad1 100644 (file)
@@ -49,8 +49,8 @@ import org.bouncycastle.operator.OperatorCreationException;
 import org.bouncycastle.pkcs.PKCS10CertificationRequest;
 import org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder;
 import org.bouncycastle.pkcs.jcajce.JcaPKCS10CertificationRequestBuilder;
-import org.onap.aaf.cadi.cm.CertException;
-import org.onap.aaf.cadi.cm.Factory;
+import org.onap.aaf.cadi.configure.CertException;
+import org.onap.aaf.cadi.configure.Factory;
 import org.onap.aaf.misc.env.Trans;
 
 public class CSRMeta {
@@ -156,6 +156,7 @@ public class CSRMeta {
                Date start = gc.getTime();
                gc.add(GregorianCalendar.DAY_OF_MONTH,2);
                Date end = gc.getTime();
+               @SuppressWarnings("deprecation")
                X509v3CertificateBuilder xcb = new X509v3CertificateBuilder(
                                x500Name(),
                                new BigInteger(12,random), // replace with Serialnumber scheme