Class MerkleTree

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

public class MerkleTree extends Object
MerkleTree
  • 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