Package org.bouncycastle.pqc.crypto.lms

## Class HSSSignature

- java.lang.Object
- - org.bouncycastle.pqc.crypto.lms.HSSSignature

- All Implemented Interfaces:
    `Encodable`

      public class HSSSignature
      extends java.lang.Object
      implements Encodable

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `HSSSignature​(int lMinus1, org.bouncycastle.pqc.crypto.lms.LMSSignedPubKey[] signedPubKey, org.bouncycastle.pqc.crypto.lms.LMSSignature signature)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `equals​(java.lang.Object o)` |
    `byte[]` | `getEncoded()` | Return a byte array representing the implementing object.
    `static HSSSignature` | `getInstance​(java.lang.Object src, int L)` |
    `int` | `getlMinus1()` |
    `org.bouncycastle.pqc.crypto.lms.LMSSignature` | `getSignature()` |
    `org.bouncycastle.pqc.crypto.lms.LMSSignedPubKey[]` | `getSignedPubKey()` |
    `int` | `hashCode()` |

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

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

- - ### Constructor Detail

    - #### HSSSignature

          public HSSSignature​(int lMinus1,
                              org.bouncycastle.pqc.crypto.lms.LMSSignedPubKey[] signedPubKey,
                              org.bouncycastle.pqc.crypto.lms.LMSSignature signature)

  - ### Method Detail

    - #### getInstance

          public static HSSSignature getInstance​(java.lang.Object src,
                                                 int L)
                                          throws java.io.IOException

      Parameters:
        `src` - byte[], InputStream or HSSSignature
        `L` - The HSS depth, available from public key.
      Returns:
        An HSSSignature instance.
      Throws:
        `java.io.IOException`

    - #### getlMinus1

          public int getlMinus1()

    - #### getSignedPubKey

          public org.bouncycastle.pqc.crypto.lms.LMSSignedPubKey[] getSignedPubKey()

    - #### getSignature

          public org.bouncycastle.pqc.crypto.lms.LMSSignature getSignature()

    - #### equals

          public boolean equals​(java.lang.Object o)

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

    - #### hashCode

          public int hashCode()

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

    - #### 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.