|
Bouncy Castle Cryptography Library 1.71 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.tsp.ers.ERSCachingData
org.bouncycastle.tsp.ers.ERSDataGroup
Representation of data groups with more than 1 members 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. 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.
Field Summary | |
protected java.util.List |
dataObjects
|
Constructor Summary | |
ERSDataGroup(ERSData dataObject)
Constructor for a group with a single object. |
|
ERSDataGroup(ERSData[] dataObjects)
Base constructor for an "array" of data objects. |
|
ERSDataGroup(java.util.List dataObjects)
Base constructor using a list of data objects. |
Method Summary | |
protected byte[] |
calculateHash(DigestCalculator digestCalculator)
Generates a hash for the whole DataGroup. |
java.util.List |
getHashes(DigestCalculator digestCalculator)
Generates hashes for all the data objects included in the data group. |
int |
size()
Return the number of data objects present in the group. |
Methods inherited from class org.bouncycastle.tsp.ers.ERSCachingData |
getHash |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.List dataObjects
Constructor Detail |
public ERSDataGroup(ERSData[] dataObjects)
dataObjects
- an array of data objects.public ERSDataGroup(java.util.List dataObjects)
dataObjects
- a list of data objects.public ERSDataGroup(ERSData dataObject)
dataObject
- the data object to go in the group.Method Detail |
public java.util.List getHashes(DigestCalculator digestCalculator)
digestCalculator
- the DigestCalculator
to use for computing the hashes
protected byte[] calculateHash(DigestCalculator digestCalculator)
calculateHash
in class ERSCachingData
digestCalculator
- the DigestCalculator
to use for computing the hash
public int size()
|
Bouncy Castle Cryptography Library 1.71 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |