Uses of Class javax.xml.crypto.MarshalException (Java Platform SE 8 )
Date: 2026-04-17

## Uses of Class
javax.xml.crypto.MarshalException

- Packages that use MarshalException
  Package | Description
  --- | ---
  javax.xml.crypto.dsig | Classes for generating and validating XML digital signatures.
  javax.xml.crypto.dsig.keyinfo | Classes for parsing and processing `KeyInfo` elements and structures.

- - ### Uses of MarshalException in javax.xml.crypto.dsig

    Methods in javax.xml.crypto.dsig that throw MarshalException
    Modifier and Type | Method and Description
    --- | ---
    `abstract void` | TransformService.`marshalParams(XMLStructure parent, XMLCryptoContext context)` Marshals the algorithm-specific parameters.
    `void` | XMLSignature.`sign(XMLSignContext signContext)` Signs this `XMLSignature`.
    `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.

  - ### Uses of MarshalException in javax.xml.crypto.dsig.keyinfo

    Methods in javax.xml.crypto.dsig.keyinfo that throw MarshalException
    Modifier and Type | Method and Description
    --- | ---
    `void` | KeyInfo.`marshal(XMLStructure parent, XMLCryptoContext context)` Marshals the key info to XML.
    `abstract KeyInfo` | KeyInfoFactory.`unmarshalKeyInfo(XMLStructure xmlStructure)` Unmarshals a new `KeyInfo` instance from a mechanism-specific `XMLStructure` (ex: `DOMStructure`) 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.