#include <DSIGKeyInfoValue.hpp>
Inheritance diagram for DSIGKeyInfoValue:
Class for holding information on a KeyValue node as well as setting such a node in a signature.
Two types of Value are understood - RSA and DSA.
RSA values are fully implemented as per XML-DSig. They have two parameters
DSA values have all mandatory parts implemented - P, Q, G and Y.
J, Seed and PgenCounter are not currently implemented.
Public Member Functions | |
Constructors and Destructors | |
DSIGKeyInfoValue (const XSECEnv *env, XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *valueNode) | |
Constructor for an existing KeyInfo *. | |
DSIGKeyInfoValue (const XSECEnv *env) | |
Constructor for creating from scratch. | |
virtual | ~DSIGKeyInfoValue () |
Loading and Get functions | |
virtual void | load (void) |
Load an existing XML structure. | |
const XMLCh * | getDSAP (void) |
Get P value. | |
const XMLCh * | getDSAQ (void) |
Get Q value. | |
const XMLCh * | getDSAG (void) |
Get G value. | |
const XMLCh * | getDSAY (void) |
Get Y value. | |
const XMLCh * | getRSAModulus (void) |
Get Modulus. | |
const XMLCh * | getRSAExponent (void) |
Get Exponent. | |
DSA Create and set functions | |
XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * | createBlankDSAKeyValue (const XMLCh *P, const XMLCh *Q, const XMLCh *G, const XMLCh *Y) |
Create a blank KeyValue (and DOM structure). | |
void | setDSAP (const XMLCh *P) |
Set P value. | |
void | setDSAQ (const XMLCh *Q) |
Set Q value. | |
void | setDSAG (const XMLCh *G) |
Set G value. | |
void | setDSAY (const XMLCh *Y) |
Set Y value. | |
RSA Create and Set functions | |
XERCES_CPP_NAMESPACE_QUALIFIER DOMElement * | createBlankRSAKeyValue (const XMLCh *modulus, const XMLCh *exponent) |
Create a blank RSA KeyValue. | |
void | setRSAModulus (const XMLCh *modulus) |
Set the Modulus. | |
void | setRSAExponent (const XMLCh *exponent) |
Set the exponent. | |
Information Functions | |
virtual keyInfoType | getKeyInfoType (void) |
Interface call to return type. | |
virtual const XMLCh * | getKeyName (void) |
Get the name of this key (irrelevant for a KeyValue). |
|
Constructor for an existing KeyInfo *. Constructor used when loading a KeyValue node that already exists in an XML document.
|
|
Constructor for creating from scratch. Constructor used when creating a new KeyValue node to append to a signature structure.
|
|
|
|
Create a blank KeyValue (and DOM structure). Create a blank KeyValue structure with the passed parameters and create the required DOM structure as well.
|
|
Create a blank RSA KeyValue. Create a new RSA Value object and associated DOM structures.
|
|
Get G value.
|
|
Get P value.
|
|
Get Q value.
|
|
Get Y value.
|
|
Interface call to return type.
Implements DSIGKeyInfo. |
|
Get the name of this key (irrelevant for a KeyValue).
Implements DSIGKeyInfo. |
|
Get Exponent.
|
|
Get Modulus.
|
|
Load an existing XML structure. Called by the Signature class when it is reading in a DOM structure Implements DSIGKeyInfo. |
|
Set G value. Take the provided string and use it to set the G parameter in the KeyValue |
|
Set P value. Take the provided string and use it to set the P parameter in the KeyValue |
|
Set Q value. Take the provided string and use it to set the Q parameter in the KeyValue |
|
Set Y value. Take the provided string and use it to set the Y parameter in the KeyValue |
|
Set the exponent. Set the base64 encoded string of the exponent value within the element
|
|
Set the Modulus. Set the base64 encoded string of the Modulus value within the element.
|