3.org/TR/xmldsig-core/"> W3C Recommendation for XML-Signature Syntax and Processing. This class contains methods for signing and validating XML signatures with behavior as defined by the W3C specification. The XML Schema Definition is defined as:
<element name="Signature" type="ds:SignatureType"/> <complexType name="SignatureType"> <sequence> <element ref="ds:SignedInfo"/> <element ref="ds:SignatureValue"/> <element ref="ds:KeyInfo" minOccurs="0"/> <element ref="ds:Object" minOccurs="0" maxOccurs="unbounded"/> </sequence> <attribute name="Id" type="ID" use="optional"/> </complexType>
An XMLSignature
instance may be created by invoking one of the {@link XMLSignatureFactory#newXMLSignature newXMLSignature} methods of the{@link XMLSignatureFactory} class.
If the contents of the underlying document containing the XMLSignature
are subsequently modified, the behavior is undefined.
Note that this class is named XMLSignature
rather than Signature
to avoid naming clashes with the existing {@link Signature java.security.Signature} class.
@see XMLSignatureFactory#newXMLSignature(SignedInfo,KeyInfo)
@see XMLSignatureFactory#newXMLSignature(SignedInfo,KeyInfo,List,String,String)
@author Joyce L. Leung
@author Sean Mullan
@author Erwin van der Koogh
@author JSR 105 Expert Group