Package fr.gouv.vitam.common.security.merkletree

# Class MerkleTree

java.lang.Object
fr.gouv.vitam.common.security.merkletree.MerkleTree

public class MerkleTree extends Object
MerkleTree

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final MerkleTree`
  `EMPTY_LEAF`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MerkleTree()`
  MerkleTree empty constructor
  `MerkleTree(byte[] root, MerkleTree leftLeaf, MerkleTree rightLeaf)`
  Initialize the needed parameters for MerkleTree constructor

- ## Method Summary

  Modifier and Type
  Method
  Description
  `MerkleTree`
  `getLeftLeaf()`
  `MerkleTree`
  `getRightLeaf()`
  `byte[]`
  `getRoot()`

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

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

- ## Field Details

  - ### EMPTY_LEAF

    public static final MerkleTree EMPTY_LEAF

- ## Constructor Details

  - ### MerkleTree

    public MerkleTree()
    MerkleTree empty constructor

  - ### MerkleTree

    public MerkleTree(byte[] root, MerkleTree leftLeaf, MerkleTree rightLeaf)
    Initialize the needed parameters for MerkleTree constructor
    Parameters:
      `root` - : the root of the MerkleTree
      `leftLeaf` - : the left leaf of the MerkleTree
      `rightLeaf` - : the right leaf of the MerkleTree

- ## Method Details

  - ### getRoot

    public byte[] getRoot()
    Returns:
      root for type byte[]

  - ### getLeftLeaf

    public MerkleTree getLeftLeaf()
    Returns:
      left sheet for type MerkleTree

  - ### getRightLeaf

    public MerkleTree getRightLeaf()
    Returns:
      right sheet for type MerkleTree