Re: JCR10.5

2006-03-30 Thread Sean Mullan
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

Re: JCR10.5

2006-03-30 Thread Sean Mullan
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

Re: JCR10.5

2006-03-29 Thread gain knowledge
    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

JCR10.5

2006-03-29 Thread gain knowledge
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