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

org.bouncycastle.crypto.util

## Class DERMacData

- java.lang.Object
- - org.bouncycastle.crypto.util.DERMacData

-     public final class DERMacData
      extends java.lang.Object

  Builder and holder class for preparing SP 800-56A compliant MacData. Elements in the data are encoded as DER objects with empty octet strings used to represent nulls in compulsory fields.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `DERMacData.Builder` Builder to create OtherInfo
    `static class` | `DERMacData.Type`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getMacData()`

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

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

- - ### Method Detail

    - #### getMacData

          public byte[] getMacData()