Uses of Interface javax.xml.crypto.XMLCryptoContext (Java Platform SE 8 )
Date: 2026-03-29

## Uses of Interface
javax.xml.crypto.XMLCryptoContext

- Packages that use XMLCryptoContext
  Package | Description
  --- | ---
  javax.xml.crypto | Common classes for XML cryptography.
  javax.xml.crypto.dom | DOM-specific classes for the `javax.xml.crypto` package.
  javax.xml.crypto.dsig | Classes for generating and validating XML digital signatures.
  javax.xml.crypto.dsig.dom | DOM-specific classes for the `javax.xml.crypto.dsig` package.
  javax.xml.crypto.dsig.keyinfo | Classes for parsing and processing `KeyInfo` elements and structures.

- - ### Uses of XMLCryptoContext in javax.xml.crypto

    Methods in javax.xml.crypto with parameters of type XMLCryptoContext
    Modifier and Type | Method and Description
    --- | ---
    `Data` | URIDereferencer.`dereference(URIReference uriReference, XMLCryptoContext context)` Dereferences the specified `URIReference` and returns the dereferenced data.
    `abstract KeySelectorResult` | KeySelector.`select(KeyInfo keyInfo, KeySelector.Purpose purpose, AlgorithmMethod method, XMLCryptoContext context)` Attempts to find a key that satisfies the specified constraints.

  - ### Uses of XMLCryptoContext in javax.xml.crypto.dom

    Classes in javax.xml.crypto.dom that implement XMLCryptoContext
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DOMCryptoContext` This class provides a DOM-specific implementation of the `XMLCryptoContext` interface.

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

    Subinterfaces of XMLCryptoContext in javax.xml.crypto.dsig
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `XMLSignContext` Contains context information for generating XML Signatures.
    `interface` | `XMLValidateContext` Contains context information for validating XML Signatures.

    Methods in javax.xml.crypto.dsig with parameters of type XMLCryptoContext
    Modifier and Type | Method and Description
    --- | ---
    `abstract void` | TransformService.`init(XMLStructure parent, XMLCryptoContext context)` Initializes this `TransformService` with the specified parameters and document context.
    `abstract void` | TransformService.`marshalParams(XMLStructure parent, XMLCryptoContext context)` Marshals the algorithm-specific parameters.
    `Data` | Transform.`transform(Data data, XMLCryptoContext context)` Transforms the specified data using the underlying transform algorithm.
    `Data` | Transform.`transform(Data data, XMLCryptoContext context, OutputStream os)` Transforms the specified data using the underlying transform algorithm.

  - ### Uses of XMLCryptoContext in javax.xml.crypto.dsig.dom

    Classes in javax.xml.crypto.dsig.dom that implement XMLCryptoContext
    Modifier and Type | Class and Description
    --- | ---
    `class` | `DOMSignContext` A DOM-specific `XMLSignContext`.
    `class` | `DOMValidateContext` A DOM-specific `XMLValidateContext`.

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

    Methods in javax.xml.crypto.dsig.keyinfo with parameters of type XMLCryptoContext
    Modifier and Type | Method and Description
    --- | ---
    `Data` | RetrievalMethod.`dereference(XMLCryptoContext context)` Dereferences the `KeyInfo` information referenced by this `RetrievalMethod` and applies the specified `Transform`s.
    `void` | KeyInfo.`marshal(XMLStructure parent, XMLCryptoContext context)` Marshals the key info to XML.

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.