javax.xml.crypto.dsig.keyinfo (Java SE 26 & JDK 26)
Description: declaration: module: java.xml.crypto, package: javax.xml.crypto.dsig.keyinfo
Keywords: javax.xml.crypto.dsig.keyinfo package

# Package javax.xml.crypto.dsig.keyinfo

package javax.xml.crypto.dsig.keyinfo
Classes for parsing and processing `KeyInfo` elements and structures. `KeyInfo` is an optional element that enables the recipient(s) to obtain the key needed to validate an `XMLSignature`. `KeyInfo` may contain keys, names, certificates and other public key management information, such as in-band key distribution or key agreement data. This package contains classes representing types defined in the W3C specification for XML Signatures, such as `KeyName`, `KeyValue`, `RetrievalMethod`, `X509Data`, `X509IssuerSerial`, and `PGPData`. `KeyInfoFactory` is an abstract factory that creates `KeyInfo` objects from scratch.

## Package Specification

- XML-Signature Syntax and Processing: W3C Recommendation
- RFC 3275: XML-Signature Syntax and Processing

Since:
  1.6

- Related Packages
  Package
  Description
  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.spec
  Parameter classes for XML digital signatures.
- Class
  Description
  KeyInfo
  A representation of the XML `KeyInfo` element as defined in the W3C Recommendation for XML-Signature Syntax and Processing.
  KeyInfoFactory
  A factory for creating `KeyInfo` objects from scratch or for unmarshalling a `KeyInfo` object from a corresponding XML representation.
  KeyName
  A representation of the XML `KeyName` element as defined in the W3C Recommendation for XML-Signature Syntax and Processing.
  KeyValue
  A representation of the XML `KeyValue` element as defined in the W3C Recommendation for XML-Signature Syntax and Processing.
  PGPData
  A representation of the XML `PGPData` element as defined in the W3C Recommendation for XML-Signature Syntax and Processing.
  RetrievalMethod
  A representation of the XML `RetrievalMethod` element as defined in the W3C Recommendation for XML-Signature Syntax and Processing.
  X509Data
  A representation of the XML `X509Data` element as defined in the W3C Recommendation for XML-Signature Syntax and Processing.
  X509IssuerSerial
  A representation of the XML `X509IssuerSerial` element as defined in the W3C Recommendation for XML-Signature Syntax and Processing.