Class MerkleTree
- java.lang.Object
-
- fr.gouv.vitam.common.security.merkletree.MerkleTree
-
public class MerkleTree extends java.lang.Object
MerkleTree
-
-
Field Summary
Fields Modifier and Type Field Description static MerkleTree
EMPTY_LEAF
-
Constructor Summary
Constructors Constructor Description MerkleTree()
MerkleTree empty constructorMerkleTree(byte[] root, MerkleTree leftLeaf, MerkleTree rightLeaf)
Initialize the needed parameters for MerkleTree constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MerkleTree
getLeftLeaf()
MerkleTree
getRightLeaf()
byte[]
getRoot()
-
-
-
Field Detail
-
EMPTY_LEAF
public static final MerkleTree EMPTY_LEAF
-
-
Constructor Detail
-
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 MerkleTreeleftLeaf
- : the left leaf of the MerkleTreerightLeaf
- : the right leaf of the MerkleTree
-
-
Method Detail
-
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
-
-