# Uses of Interface
javax.xml.crypto.dsig.XMLSignature

Packages that use XMLSignature
Package
Description
javax.xml.crypto.dsig
Classes for generating and validating XML digital signatures.

## Uses of XMLSignature in javax.xml.crypto.dsig

Methods in javax.xml.crypto.dsig that return XMLSignature
Modifier and Type
Method
Description
`abstract XMLSignature`
XMLSignatureFactory.`newXMLSignature(SignedInfo si, KeyInfo ki)`
Creates an `XMLSignature` and initializes it with the contents of the specified `SignedInfo` and `KeyInfo` objects.
`abstract XMLSignature`
XMLSignatureFactory.`newXMLSignature(SignedInfo si, KeyInfo ki, List<? extends XMLObject> objects, String id, String signatureValueId)`
Creates an `XMLSignature` and initializes it with the specified parameters.
`abstract XMLSignature`
XMLSignatureFactory.`unmarshalXMLSignature(XMLValidateContext context)`
Unmarshals a new `XMLSignature` instance from a mechanism-specific `XMLValidateContext` instance.
`abstract XMLSignature`
XMLSignatureFactory.`unmarshalXMLSignature(XMLStructure xmlStructure)`
Unmarshals a new `XMLSignature` instance from a mechanism-specific `XMLStructure` instance.