PemHeader (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.util.io.pem

## Class PemHeader

- java.lang.Object
- - org.bouncycastle.util.io.pem.PemHeader

-     public class PemHeader
      extends java.lang.Object

  Class representing a PEM header (name, value) pair.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PemHeader(java.lang.String name, java.lang.String value)` Base constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(java.lang.Object o)`
    `java.lang.String` | `getName()`
    `java.lang.String` | `getValue()`
    `int` | `hashCode()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PemHeader

          public PemHeader(java.lang.String name,
                           java.lang.String value)

      Base constructor.
      Parameters:
        `name` - name of the header property.
        `value` - value of the header property.

  - ### Method Detail

    - #### getName

          public java.lang.String getName()

    - #### getValue

          public java.lang.String getValue()

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object o)

      Overrides:
        `equals` in class `java.lang.Object`