Open GoogleCodeExporter opened 9 years ago
xades4j doesn't include that tag and currently there's no option to control
that. It may be included on the next version. If you really need it, you can
change the code to include the tag. The X509Data element is created on the
KeyInfoBuilder class.
Original comment by luis.fgoncalv
on 11 Aug 2012 at 7:59
Yes i noticed that i changed org.apache.xml.security.signature.XMLSignature
class in xml-security jar.
orginal
public void addKeyInfo(X509Certificate cert) throws XMLSecurityException {
X509Data x509data = new X509Data(this._doc);
x509data.addCertificate(cert);
this.getKeyInfo().add(x509data);
}
i added x509data.addSubjectName(cert); code in method and it solved my
problem.
Original comment by keklikhasan
on 11 Aug 2012 at 10:38
I have run into similar issue, and since we are using maven, source code
modifications of external libraries is not the best idea.
I have added method to my Code:
public void addX509certInfo(XMLSignature sig, Document doc, X509Certificate certificate) throws XMLSecurityException {
X509Data x509data = new X509Data(doc);
x509data.addCertificate(certificate);
x509data.addSubjectName(certificate);
sig.getKeyInfo().add(x509data);
}
Original comment by mort...@gmail.com
on 8 Mar 2013 at 3:19
Original issue reported on code.google.com by
keklikhasan
on 10 Aug 2012 at 8:54Attachments: