Package org.bouncycastle.tsp
Class DataGroup
java.lang.Object
org.bouncycastle.tsp.DataGroup
Representation of data groups according to the description provided in RFC4998.
Such data groups represent a set of one or more data objects (e.g. electronic documents) for which an Evidence Record should be generated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getHash(DigestCalculator digestCalculator) Generates a hash for the whole DataGroup.TreeSet<byte[]>getHashes(DigestCalculator digestCalculator) Generates hashes for all the data objects included in the data group.
-
Constructor Details
-
DataGroup
-
DataGroup
public DataGroup(byte[] dataObject)
-
-
Method Details
-
getHashes
Generates hashes for all the data objects included in the data group.- Parameters:
digestCalculator- theDigestCalculatorto use for computing the hashes- Returns:
- the set of hashes, in ascending order
-
getHash
Generates a hash for the whole DataGroup.- Parameters:
digestCalculator- theDigestCalculatorto use for computing the hash- Returns:
- a hash that is representative of the whole DataGroup
-