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

org.bouncycastle.crypto.threshold

## Class ShamirSplitSecretShare

- java.lang.Object
- - org.bouncycastle.crypto.threshold.ShamirSplitSecretShare

- All Implemented Interfaces:
    SecretShare, Encodable

      public class ShamirSplitSecretShare
      extends java.lang.Object
      implements SecretShare

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ShamirSplitSecretShare(byte[] secretShare)`
    `ShamirSplitSecretShare(byte[] secretShare, int r)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getEncoded()` Return a byte array representing the implementing object.

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

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

- - ### Constructor Detail

    - #### ShamirSplitSecretShare

          public ShamirSplitSecretShare(byte[] secretShare,
                                        int r)

    - #### ShamirSplitSecretShare

          public ShamirSplitSecretShare(byte[] secretShare)

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