String sigAlgOID = sigAlgNameAndOID[1];
AlgorithmIdentifier algId = new AlgorithmIdentifier(sigAlgOID);
// generate a distinguished name using the string
Name subjectDName = null;
Name issuerDName = null;
try {
subjectDName = new Name(strSubjectDN);
if (strSubjectDN.equals(strIssuerDN)) {
issuerDName = subjectDName;
} else {
issuerDName = new Name(strIssuerDN);
}
} catch (IOException e) {
throw (IOException) new IOException(
"Failed to generate a distinguished name. ").initCause(e);
}