santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex O'Ree" <>
Subject Is still example still valid?
Date Sat, 30 Mar 2013 13:57:10 GMT
I was looking at the sample signature validation code from the
distribution xml-security-1_5_3\samples\javax\xml\crypto\dsig\samples\

I've seen other signature validation code that looks nearly identical,
except for the following snippet:

 String providerName = System.getProperty
        XMLSignatureFactory fac = XMLSignatureFactory.getInstance("DOM",
            (Provider) Class.forName(providerName).newInstance());

I have a few questions.
1) Is that class still the correct one to use? The use of the
"internal" package name is what's throwing me off. In other examples
(outside of Santuario) it's just:
XMLSignatureFactory fac = XMLSignatureFactory.getInstance();

2) Using this snippet, will Santuario resolve automatically resolve
transforms included with the signature? (assuming that the signature
originated from somewhere else and that we don't know ahead of time
what type of transform will used)

3) From the samples in
is there a complete example of signing and validating a signature
using some kind of xpath or xslt transformation?

4) Last one, does Santuario provide of any kind certificate trust
chain building, or OCSP/CRL validation options?

View raw message