Such data groups represent a set of one or more data objects (e.g. electronic documents) for which an Evidence Record should be generated. Data groups will be encapsulated in a single PartialHashtree so that the presence of the group can be checked for, as well as the individual items that make it up.
| Access | Constructor and Description |
|---|---|
| public | ERSDataGroup(ERSData...
an array of data objects. dataObjects)Base constructor for an "array" of data objects. |
| public | ERSDataGroup(List<ERSData>
a list of data objects. dataObjects)Base constructor using a list of data objects. |
| public | ERSDataGroup(ERSData
the data object to go in the group. dataObject)Constructor for a group with a single object. |
| Modifier and Type | Method and Description |
|---|---|
| protected byte[] | Returns: a hash that is representative of the whole DataGroupthe digestCalculator, byte[] previousChainHash)DigestCalculator to use for computing the hashImplements abstract org. Generates a hash for the whole DataGroup. |
| public byte[] | Returns: calculated hash.digest calculator to use. digestCalculator, byte[] hash from an earlier chain if it needs to be included. previousChainHash)Overrides org. Implements org. Return the calculated hash for the Data |
| public List | Returns: the set of hashes, in ascending orderthe digestCalculator, final byte[] previousChainHash)DigestCalculator to use for computing the hashesGenerates hashes for all the data objects included in the data group with a previous chain hash. |
| public int | Returns: membership count of the group.Return the number of data objects present in the group. |
| dataObjects | back to summary |
|---|---|
| protected List<ERSData> dataObjects | |
| ERSDataGroup | back to summary |
|---|---|
| public ERSDataGroup(ERSData... dataObjects) Base constructor for an "array" of data objects.
| |
| ERSDataGroup | back to summary |
|---|---|
| public ERSDataGroup(List<ERSData> dataObjects) Base constructor using a list of data objects. | |
| ERSDataGroup | back to summary |
|---|---|
| public ERSDataGroup(ERSData dataObject) Constructor for a group with a single object.
| |
| calculateHash | back to summary |
|---|---|
| protected byte[] calculateHash(DigestCalculator digestCalculator, byte[] previousChainHash) Implements abstract org. Generates a hash for the whole DataGroup.
| |
| getHash | back to summary |
|---|---|
| public byte[] getHash(DigestCalculator digestCalculator, byte[] previousChainHash) Overrides org. Implements org. Return the calculated hash for the Data
| |
| getHashes | back to summary |
|---|---|
| public List Generates hashes for all the data objects included in the data group with a previous chain hash.
| |
| size | back to summary |
|---|---|
| public int size() Return the number of data objects present in the group.
| |