XMSSSignature.Builder (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.pqc.crypto.xmss

## Class XMSSSignature.Builder

- java.lang.Object
- - org.bouncycastle.pqc.crypto.xmss.XMSSReducedSignature.Builder
  - - org.bouncycastle.pqc.crypto.xmss.XMSSSignature.Builder

- Enclosing class:
    XMSSSignature

      public static class XMSSSignature.Builder
      extends XMSSReducedSignature.Builder

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Builder(XMSSParameters params)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `XMSSSignature` | `build()`
    `XMSSSignature.Builder` | `withIndex(int val)`
    `XMSSSignature.Builder` | `withRandom(byte[] val)`
    `XMSSSignature.Builder` | `withSignature(byte[] val)`

    - ### Methods inherited from class org.bouncycastle.pqc.crypto.xmss.XMSSReducedSignature.Builder

      `withAuthPath, withReducedSignature, withWOTSPlusSignature`

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

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

- - ### Constructor Detail

    - #### Builder

          public Builder(XMSSParameters params)

  - ### Method Detail

    - #### withIndex

          public XMSSSignature.Builder withIndex(int val)

    - #### withRandom

          public XMSSSignature.Builder withRandom(byte[] val)

    - #### withSignature

          public XMSSSignature.Builder withSignature(byte[] val)

    - #### build

          public XMSSSignature build()

      Overrides:
        `build` in class `XMSSReducedSignature.Builder`