org.bouncycastle.util.io.pem (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

# Package org.bouncycastle.util.io.pem

Classes for reading and writing raw PEM objects.

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  PemObjectGenerator | Base interface for generators of PEM objects.
  PemObjectParser | Base interface for parsers to convert PEM objects into specific objects.

- Class Summary
  Class | Description
  --- | ---
  PemHeader | Class representing a PEM header (name, value) pair.
  PemObject | A generic PEM object - type, header properties, and byte content.
  PemReader | A generic PEM reader, based on the format outlined in RFC 1421
  PemWriter | A generic PEM writer, based on RFC 1421

- Exception Summary
  Exception | Description
  --- | ---
  PemGenerationException | Exception thrown on failure to generate a PEM object.

## Package org.bouncycastle.util.io.pem Description

Classes for reading and writing raw PEM objects.