Package org.bouncycastle.pqc.crypto.xmss

## Class XMSSSignature

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

- All Implemented Interfaces:
    `XMSSStoreableObjectInterface`, `Encodable`

      public final class XMSSSignature
      extends XMSSReducedSignature
      implements XMSSStoreableObjectInterface, Encodable

  XMSS Signature.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `XMSSSignature.Builder` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `byte[]` | `getEncoded()` | Return a byte array representing the implementing object.
    `int` | `getIndex()` |
    `byte[]` | `getRandom()` |
    `byte[]` | `toByteArray()` | Deprecated. use getEncoded() this method will become private.

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

      `getAuthPath, getParams, getWOTSPlusSignature`

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

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

- - ### Method Detail

    - #### getEncoded

          public byte[] getEncoded()
                            throws java.io.IOException

      Description copied from interface: `Encodable`
      Return a byte array representing the implementing object.
      Specified by:
        `getEncoded` in interface `Encodable`
      Returns:
        a byte array representing the encoding.
      Throws:
        `java.io.IOException` - if an issue arises generation the encoding.

    - #### toByteArray

          public byte[] toByteArray()

      Deprecated.
      use getEncoded() this method will become private.
      Description copied from interface: `XMSSStoreableObjectInterface`
      Create byte representation of object.
      Specified by:
        `toByteArray` in interface `XMSSStoreableObjectInterface`
      Overrides:
        `toByteArray` in class `XMSSReducedSignature`
      Returns:

    - #### getIndex

          public int getIndex()

    - #### getRandom

          public byte[] getRandom()