Advertisement

01.21.2008 at 10:51AM PST, ID: 23098947
[x]
Attachment Details

Verifying XML digital signature and getting X509 certificate details from KeyInfo

Asked by orvster36 in JAXP & SAX (XML APIs), Java Programming Language, Extensible Markup Language (XML)

Tags: java

I need to verify an XML digital signature and as part of the process I need to extract the signer certificate from the signed file "Signature" element.   Using the following methods:
NodeList nl = doc.getElementsByTagNameNS(XMLSignature.xmlNS,"Signature");
DOMValidateContext valContext = new DOMValidateContext(new KeyStoreKeySelector(), nl.item(0));

I need to use the KeyInfo contained in the XMLSignature element to create an  X509Certificate to get the cerficiate details; serial number, validity, subject, issuer, etc.  But have not been able to find how to do this.Start Free Trial
 
Loading Advertisement...
 
[+][-]01.23.2008 at 01:20AM PST, ID: 20721888

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]01.24.2008 at 09:39AM PST, ID: 20735197

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]01.25.2008 at 01:55AM PST, ID: 20741294

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.25.2008 at 02:19AM PST, ID: 20741379

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JAXP & SAX (XML APIs), Java Programming Language, Extensible Markup Language (XML)
Tags: java
Sign Up Now!
Solution Provided By: ramazanyich
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628