@Test(expectedExceptions = UnsupportedOperationException.class, expectedExceptionsMessageRegExp = "Identity metadata is not supported by BlindingMaskLinkingHashTreeBuilder") public void testAddNodeWithMetadataToHashBuilder() { BlindingMaskLinkingHashTreeBuilder builder = createTreeBuilder(); builder.add(new ImprintNode(DATA_HASH_2), new IdentityMetadata("ClientId")); }
@Override public void add(ImprintNode node) throws KSIException { Util.notNull(node, "Node"); if (node.getLevel() != 0) { throw new IllegalArgumentException("ImprintNode with level greater than 0 is not supported by BlindingMaskLinkingHashTreeBuilder"); } ImprintNode newNode = calculateNewNode(node); treeBuilder.add(newNode); previousBlockHash = new DataHash(newNode.getValue()); }
BlindingMaskLinkingHashTreeBuilder implements TreeBuilder<ImprintNode> { @Override public void add(ImprintNode node) throws KSIException { Util.notNull(node, "Node"); if (node.getLevel() != 0) { throw new IllegalArgumentException("ImprintNode with level greater than 0 is not supported by BlindingMaskLinkingHashTreeBuilder"); } ImprintNode newNode = calculateNewNode(node); treeBuilder.add(newNode); previousBlockHash = new DataHash(newNode.getValue()); } }
BlindingMaskLinkingHashTreeBuilder implements TreeBuilder<ImprintNode> { @Override public void add(ImprintNode node) throws KSIException { Util.notNull(node, "Node"); if (node.getLevel() != 0) { throw new IllegalArgumentException("ImprintNode with level greater than 0 is not supported by BlindingMaskLinkingHashTreeBuilder"); } ImprintNode newNode = calculateNewNode(node); treeBuilder.add(newNode); previousBlockHash = new DataHash(newNode.getValue()); } BlindingMaskLinkingHashTreeBuilder(byte[] initializationVector);  BlindingMaskLinkingHashTreeBuilder(byte[] initializationVector, DataHash previousBlockHash);  BlindingMaskLinkingHashTreeBuilder(HashAlgorithm algorithm, byte[] initializationVector, DataHash previousBlockHash);  BlindingMaskLinkingHashTreeBuilder(HashAlgorithm algorithm,
                                              byte[] initializationVector,
                                              DataHash previousBlockHash,
                                              TreeBuilder<ImprintNode> treeBuilder); }
BlindingMaskLinkingHashTreeBuilder implements TreeBuilder<ImprintNode> { @Override public void add(ImprintNode node) throws KSIException { Util.notNull(node, "Node"); if (node.getLevel() != 0) { throw new IllegalArgumentException("ImprintNode with level greater than 0 is not supported by BlindingMaskLinkingHashTreeBuilder"); } ImprintNode newNode = calculateNewNode(node); treeBuilder.add(newNode); previousBlockHash = new DataHash(newNode.getValue()); } BlindingMaskLinkingHashTreeBuilder(byte[] initializationVector);  BlindingMaskLinkingHashTreeBuilder(byte[] initializationVector, DataHash previousBlockHash);  BlindingMaskLinkingHashTreeBuilder(HashAlgorithm algorithm, byte[] initializationVector, DataHash previousBlockHash);  BlindingMaskLinkingHashTreeBuilder(HashAlgorithm algorithm,
                                              byte[] initializationVector,
                                              DataHash previousBlockHash,
                                              TreeBuilder<ImprintNode> treeBuilder); @Override void add(ImprintNode node); @Override void add(ImprintNode node, IdentityMetadata metadata); @Override long calculateHeight(ImprintNode node); @Override long calculateHeight(ImprintNode node, IdentityMetadata metadata); @Override void add(ImprintNode... nodes); @Override ImprintNode build(); DataHash getLastNodeHash(); }
BlindingMaskLinkingHashTreeBuilder implements TreeBuilder<ImprintNode> { @Override public void add(ImprintNode node) throws KSIException { Util.notNull(node, "Node"); if (node.getLevel() != 0) { throw new IllegalArgumentException("ImprintNode with level greater than 0 is not supported by BlindingMaskLinkingHashTreeBuilder"); } ImprintNode newNode = calculateNewNode(node); treeBuilder.add(newNode); previousBlockHash = new DataHash(newNode.getValue()); } BlindingMaskLinkingHashTreeBuilder(byte[] initializationVector);  BlindingMaskLinkingHashTreeBuilder(byte[] initializationVector, DataHash previousBlockHash);  BlindingMaskLinkingHashTreeBuilder(HashAlgorithm algorithm, byte[] initializationVector, DataHash previousBlockHash);  BlindingMaskLinkingHashTreeBuilder(HashAlgorithm algorithm,
                                              byte[] initializationVector,
                                              DataHash previousBlockHash,
                                              TreeBuilder<ImprintNode> treeBuilder); @Override void add(ImprintNode node); @Override void add(ImprintNode node, IdentityMetadata metadata); @Override long calculateHeight(ImprintNode node); @Override long calculateHeight(ImprintNode node, IdentityMetadata metadata); @Override void add(ImprintNode... nodes); @Override ImprintNode build(); DataHash getLastNodeHash();  }