Uses of Interface javax.xml.crypto.dsig.XMLSignature (Java Platform SE 8 )
Date: 2026-04-17

## 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 and 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 objects, String id, String signatureValueId)` Creates an `XMLSignature` and initializes it with the specified parameters.
    `abstract XMLSignature` | XMLSignatureFactory.`unmarshalXMLSignature(XMLStructure xmlStructure)` Unmarshals a new `XMLSignature` instance from a mechanism-specific `XMLStructure` instance.
    `abstract XMLSignature` | XMLSignatureFactory.`unmarshalXMLSignature(XMLValidateContext context)` Unmarshals a new `XMLSignature` instance from a mechanism-specific `XMLValidateContext` instance.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.