gain knowledge wrote:
Here is the sample code.Does any one have any thoughts on this
Yes, you haven't signed the document yet. After creating the KeyInfo,
add the following lines:
XMLSignature sig = fac.newXMLSignature(si, ki,
Collections.singletonList(obj), null, null);
sig.sign(new D
Hi,
Thanks for trying out JSR 105.
gain knowledge wrote:
I tried the XML signature with JSR10.5 (JWSDP).It doesn't use any
keystore.I don't undestand how it generates a private to sign the
document..
Can you be more specific? It does not generate the signing key. It is up
to the application
Here is the sample code.Does any one have any thoughts on this String providerName = System.getProperty("jsr105Provider", "org.jcp.xml.dsig.internal.dom.XMLDSigRI");XMLSignatureFactory fac = XMLSignatureFactory.getInstance("DOM",(Provider) Class.forName(providerName).newInstance());// Cre
I tried the XML signature with JSR10.5 (JWSDP).It doesn't use any keystore.I don't undestand how it generates a private to sign the document..But it pulls the URI content from the origianl place in the XML and pushs along with the signature element.It doesn't retain the content where it was in the