Bouncy Castle Cryptography Library 1.81

org.bouncycastle.crypto.threshold
Class ShamirSplitSecretShare

java.lang.Object
  extended byorg.bouncycastle.crypto.threshold.ShamirSplitSecretShare
All Implemented Interfaces:
Encodable, SecretShare

public class ShamirSplitSecretShare
extends java.lang.Object
implements SecretShare


Constructor Summary
ShamirSplitSecretShare(byte[] secretShare)
           
ShamirSplitSecretShare(byte[] secretShare, int r)
           
 
Method Summary
 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.

Bouncy Castle Cryptography Library 1.81