DERMacData.Builder (Bouncy Castle Library 1.54 API Specification)
Date: 2015-12-29

org.bouncycastle.crypto.util

## Class DERMacData.Builder

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

- Enclosing class:
    DERMacData

      public static final class DERMacData.Builder
      extends java.lang.Object

  Builder to create OtherInfo

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DERMacData.Builder(DERMacData.Type type, byte[] idU, byte[] idV, byte[] ephemDataU, byte[] ephemDataV)` Create a basic builder with just the compulsory fields.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `DERMacData` | `build()`
    `DERMacData.Builder` | `withText(byte[] text)` Add optional text.

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

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

- - ### Constructor Detail

    - #### DERMacData.Builder

          public DERMacData.Builder(DERMacData.Type type,
                            byte[] idU,
                            byte[] idV,
                            byte[] ephemDataU,
                            byte[] ephemDataV)

      Create a basic builder with just the compulsory fields.
      Parameters:
        `type` - the MAC header
        `idU` - sender party ID.
        `idV` - receiver party ID.
        `ephemDataU` - ephemeral data from sender.
        `ephemDataV` - ephemeral data from receiver.

  - ### Method Detail

    - #### withText

          public DERMacData.Builder withText(byte[] text)

      Add optional text.
      Parameters:
        `text` - optional agreed text to add to the MAC.
      Returns:
        the current builder instance.

    - #### build

          public DERMacData build()