santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm O hEigeartaigh <cohei...@apache.org>
Subject Re: Newbie question on java samples.
Date Tue, 04 Dec 2012 12:35:02 GMT
It's signing both. The following signs the parent Element using the
Enveloped signature transform:

 transforms.addTransform(Transforms.TRANSFORM_C14N_WITH_COMMENTS);
 //Add the above Document/Reference
 sig.addDocument("", transforms, Constants.ALGO_ID_DIGEST_SHA1);

The following signs some external documents:

 sig.addDocument("http://www.w3.org/TR/xml-stylesheet");
 sig.addDocument("http://www.nue.et-inf.uni-siegen.de/index.html");

Colm.


On Fri, Nov 30, 2012 at 4:50 PM, Charles Brown <c_brown1999@hotmail.com>wrote:

> CreateSignature.java




-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Mime
View raw message