|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectxades4j.utils.TimeStampDigestInput
public class TimeStampDigestInput
Helper class to build inputs for time-stamps. The digests for time-stamps are
usually calculated over a concatenations of byte-streams, resulting from nodes
and/or processed References, with the proper canonicalization if needed.
This class provides methods to build a sequential input by adding DOM Nodes
or References.
| Constructor Summary | |
|---|---|
TimeStampDigestInput(String canonMethodUri)
|
|
| Method Summary | |
|---|---|
void |
addNode(Node n)
Adds a Node to the input. |
void |
addReference(org.apache.xml.security.signature.Reference r)
Adds a Reference to the input. |
byte[] |
getBytes()
Gets the octet-stream corresponding to the actual state of the input. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeStampDigestInput(String canonMethodUri)
canonMethodUri - the canonicalization method to be used, if needed
NullPointerException - if canonMethodUri is null| Method Detail |
|---|
public void addReference(org.apache.xml.security.signature.Reference r)
throws CannotAddDataToDigestInputException
Reference to the input. It is processed and the result is
canonicalized if it is a node-set.
r - the reference to be added
CannotAddDataToDigestInputException - if there is an error adding the reference
NullPointerException - if r is null
public void addNode(Node n)
throws CannotAddDataToDigestInputException
Node to the input. The node is canonicalized.
n - the node to be added
CannotAddDataToDigestInputException - if there is an error adding the node
NullPointerException - if n is nullpublic byte[] getBytes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||