#include <DSIGSignedInfo.hpp>
Collaboration diagram for DSIGSignedInfo:
The <SignedInfo> node is the container for all the information that is signed. It contains the ReferenceList and information on the signature and canonicalisation method for the signature.
Generally this class should not be manipulated directly.
Public Member Functions | |
Constructors and Destructors | |
DSIGSignedInfo (XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XSECSafeBufferFormatter *pFormatter, XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *signedInfoNode, const XSECEnv *env) | |
Constructor for existing nodes. | |
DSIGSignedInfo (XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc, XSECSafeBufferFormatter *pFormatter, const XSECEnv *env) | |
Constructor for building from scratch. | |
~DSIGSignedInfo () | |
Destructor. | |
Create and Set | |
void | load (void) |
Load from DOM. | |
bool | verify (safeBuffer &errStr) |
Verify the SignedInfo. | |
void | hash (void) |
Hash the reference list. | |
XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * | createBlankSignedInfo (canonicalizationMethod cm, signatureMethod sm, hashMethod hm) |
Create an empty SignedInfo. | |
DSIGReference * | createReference (const XMLCh *URI, hashMethod hm, char *type) |
Create a reference to add to the SignedInfo. | |
Getter functions | |
XERCES_CPP_NAMESPACE_QUALIFIER DOMNode * | getDOMNode (void) |
Get the node pointing to the top of the DOM fragment. | |
canonicalizationMethod | getCanonicalizationMethod (void) |
Get the canonicalisation method. | |
hashMethod | getHashMethod (void) |
Get the hash method. | |
signatureMethod | getSignatureMethod (void) |
Get the signature method. | |
int | getHMACOutputLength (void) |
Get HMAC length. | |
DSIGReferenceList * | getReferenceList (void) |
Return the list of references. |
|
Constructor for existing nodes. Called by the library to construct a SignedInfo in cases where the DOM Nodes exist and need to be loaded
|
|
Constructor for building from scratch. Will set up the class in preparation for building the DOM structure
|
|
Destructor. Delete - but does not destroy the DOM Nodes |
|
Create an empty SignedInfo. Creates the DOM structure for a SignedInfo Builds the DOM structures and sets the control structures of the SignedInfo
|
|
Create a reference to add to the SignedInfo. Called by DSIGSignature to create and enter a new reference element
|
|
Get the canonicalisation method.
|
|
Get the node pointing to the top of the DOM fragment.
|
|
Get the hash method.
|
|
Get HMAC length. HMAC signatures can be truncated to a nominated length. This returns the length used. |
|
Return the list of references. Returns a pointer to the object holding the references contained in the SignedInfo |
|
Get the signature method.
|
|
Hash the reference list. Goes through each reference in the SignedInfo (including referenced manifests), performs the digest operation and adds the digest to the reference element |
|
Load from DOM. Load the SignedInfo from the DOM Document Does not do any verification of signatures or references - simply loads the values |
|
Verify the SignedInfo. Validates each reference contained in the SignedInfo. Does not validate the signature itself - this is done by DSIGSignature
|