x509Content = new ArrayList<Object>();
x509Content.add(cert.getSubjectDN().getName());
// x509Content.add(cert);
//x509Content.add(cert.getSubjectDN().getName());
X509Data xd = kif.newX509Data(x509Content);
data.add(xd);
}
// if (map.containsKey(SIGNATURE_OPTION_CERT_INCLUSION_X500_PRINICPAL)) {
// }
if (map.containsKey(SIGNATURE_OPTION_CERT_INCLUSION_BASE64)) {
x509Content = new ArrayList<Object>();
x509Content.add(cert);
//x509Content.add(cert.getSubjectX500Principal().getName());
X509Data xd = kif.newX509Data(x509Content);
data.add(xd);
}
if (map.containsKey(SIGNATURE_OPTION_CERT_INCLUSION_SERIAL)) {
x509Content = new ArrayList<Object>();
X509IssuerSerial issuer = kif.newX509IssuerSerial(cert.getIssuerX500Principal().getName(), cert.getSerialNumber());
x509Content.add(issuer);
X509Data xd = kif.newX509Data(x509Content);
data.add(xd);
}
//
//x509Content.add(cert);