On 8/9/12 4:41 AM, Hariprasath wrote: > Hi, > Im trying to implement detached signature using the Java. Im not > able > to find the option for changing the type of the signature (enveloped, > detached > etc.) Can you guys point me to the right option for building detached > signatures?
There is no option, but there are samples in the source code (in the samples/javax/xml/crypto/dsig/samples and samples/org/apache/xml/security/samples/signature directories) that show you how to create each type. This is really a property of how you structure your signature and what data is signed by your Reference URIs. In fact, a single XML Signature can exhibit all 3 properties (enveloped, detached and enveloping). --Sean
