#include <DSIGKeyInfoX509.hpp>
Inheritance diagram for DSIGKeyInfoX509:
Class for holding information on a X509Data node as well as setting such a node in a signature.
Public Types | |
typedef std::vector< X509Holder * > | X509ListType |
typedef size_t | size_type |
Public Methods | |
Constructors and Destructors | |
DSIGKeyInfoX509 (DSIGSignature *sig, DOMNode *X509Data) | |
Constructor used when XML structures exist. | |
DSIGKeyInfoX509 (DSIGSignature *sig) | |
Constructor called when building XML structures. | |
virtual | ~DSIGKeyInfoX509 () |
Destructor. | |
Load function and get methods | |
virtual void | load () |
Function called to load an XML structure. | |
const XMLCh * | getX509SubjectName (void) |
Get the name of the certificate. | |
const XMLCh * | getKeyName (void) |
Get the name of the certificate (interface function). | |
const XMLCh * | getX509IssuerName (void) |
Get the IssuerSerialName. | |
const XMLCh * | getX509IssuerSerialNumber (void) |
Get the IsserSerialNumber. | |
int | getCertificateListSize (void) |
Find the number of certificates held. | |
const XMLCh * | getCertificateItem (int item) |
Get the DER encoded certificate pointed to in the list. | |
virtual keyInfoType | getKeyInfoType (void) |
Interface function to find the type of this KeyInfo. | |
Create and Set functions | |
DOMElement * | createBlankX509Data (void) |
Create a new X509 data element. | |
void | setX509SubjectName (const XMLCh *name) |
Set the X509SubjectName element in the KeyInfo element. | |
void | setX509IssuerSerial (const XMLCh *name, const XMLCh *serial) |
Set the IssuerSerial element. | |
void | appendX509Certificate (const XMLCh *base64Certificate) |
Add a certificate. |
|
|
|
|
|
Constructor used when XML structures exist. Constructor called by DSIGSignature class when loading an X509Data element from DOM nodes.
|
|
Constructor called when building XML structures. Constructor called by DSIGSignature class when an XML structure is being built by a user calling the API
|
|
Destructor.
|
|
Add a certificate. Append an X509Certificate element to the list of certificates stored at the end of this KeyInfo element.
|
|
Create a new X509 data element. Create a blank (empty) X509Data element that can then be used by the application to add X509Data elements.
|
|
Get the DER encoded certificate pointed to in the list. Use the index to find the required certificate and return a pointer to the buffer containing the encoded certificate.
|
|
Find the number of certificates held. Find the number of certificates held in the X509Data structures.
|
|
Interface function to find the type of this KeyInfo.
Implements DSIGKeyInfo. |
|
Get the name of the certificate (interface function). Get the name stored in the X509SubjectName element (if it exists).
Implements DSIGKeyInfo. |
|
Get the IssuerSerialName. Get the name of the Issuer (stored in the X509IssuerSerial element).
|
|
Get the IsserSerialNumber. Get the serial number of the certificate of the issuer of the signing certificate.
|
|
Get the name of the certificate. Get the name stored in the X509SubjectName element (if it exists).
|
|
Function called to load an XML structure. Function called by DSIGSignature to load an X509Data structure from DOMNodes. Implements DSIGKeyInfo. |
|
Set the IssuerSerial element. If an X509IssuerSerial exists, replace the values with those provided, otherwise create a new element and set the values appropriately.
|
|
Set the X509SubjectName element in the KeyInfo element. If a X509SubjectName element exists, replace the text with the provided text. Otherwise create the element and set the text.
|