#include <DSIGKeyInfoList.hpp>
Collaboration diagram for DSIGKeyInfoList:
The library stores KeyInfo lists using this class.
Public Types | |
typedef std::vector< DSIGKeyInfo * > | KeyInfoListVectorType |
typedef size_t | size_type |
Public Member Functions | |
Constructors and Destructors | |
DSIGKeyInfoList (const XSECEnv *env) | |
Main constructor. | |
~DSIGKeyInfoList () | |
Destructor. | |
Public (API) functions | |
size_t | getSize () |
Get size of list. | |
DSIGKeyInfo * | item (size_type index) |
Manipulate the List | |
void | addKeyInfo (DSIGKeyInfo *ref) |
Add an already created KeyInfo. | |
void | addAndInsertKeyInfo (DSIGKeyInfo *ref) |
Add an already created KeyInfo. | |
bool | addXMLKeyInfo (XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *ki) |
Read from DOM and create. | |
bool | loadListFromXML (XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *node) |
Read full list from DOM. | |
DSIGKeyInfo * | removeKeyInfo (size_type index) |
void | setEnvironment (const XSECEnv *env) |
Set the overarching environment. | |
void | empty () |
Clear out the list. | |
bool | isEmpty () |
Is the list empty? | |
Create new KeyInfo elements | |
XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * | createKeyInfo (void) |
Create basic KeyInfo element. | |
DSIGKeyInfoValue * | appendDSAKeyValue (const XMLCh *P, const XMLCh *Q, const XMLCh *G, const XMLCh *Y) |
Append a DSA KeyValue element. | |
DSIGKeyInfoValue * | appendRSAKeyValue (const XMLCh *modulus, const XMLCh *exponent) |
Append a RSA KeyValue element. | |
DSIGKeyInfoX509 * | appendX509Data (void) |
Append a X509Data element. | |
DSIGKeyInfoName * | appendKeyName (const XMLCh *name, bool isDName=false) |
Append a KeyName element. | |
DSIGKeyInfoPGPData * | appendPGPData (const XMLCh *id, const XMLCh *packet) |
Append a PGPData element. | |
DSIGKeyInfoSPKIData * | appendSPKIData (const XMLCh *sexp) |
Append a SPKIData element. | |
DSIGKeyInfoMgmtData * | appendMgmtData (const XMLCh *data) |
Append a MgmtData element. |
|
|
|
|
|
Main constructor. Main constructor called by DSIGSignature
|
|
Destructor.
|
|
Add an already created KeyInfo. Adds a KeyInfo element that has already been built into the list.
|
|
Add an already created KeyInfo. Adds a KeyInfo element that has already been built into the list.
|
|
Read from DOM and create. Uses a DOMNode pointing to the start of the KeyInfo element to build a new KeyInfo and then add it to the list
|
|
Append a DSA KeyValue element. Add a new KeyInfo element for a DSA Value
|
|
Append a KeyName element. Add a new KeyInfo element for a key name.
|
|
Append a MgmtData element. Add a new KeyInfo element for Management Data
|
|
Append a PGPData element. Add a new KeyInfo element for a PGP key.
|
|
Append a RSA KeyValue element. Add a new KeyInfo element for a RSA Value
|
|
Append a SPKIData element. Add a new KeyInfo element for a set of SPKI S-expressions
|
|
Append a X509Data element. Add a new KeyInfo element for X509 data.
|
|
Create basic KeyInfo element. Creates the basic KeyInfo node that can then be used to embed specific KeyInfo types |
|
Clear out the list. Removes all elements from the list
|
|
Get size of list.
|
|
Is the list empty?
|
|
|
|
Read full list from DOM. Will take the starting node of a KeyInfo list and read into the list structure. This is a bit different from other "load" functions, in that it takes a node as a parameter.
|
|
|
|
Set the overarching environment. Sets the environment this list is operating within
|