#include <DSIGKeyInfoX509.hpp>
Inheritance diagram for DSIGKeyInfoX509:
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. More... | |
DSIGKeyInfoX509 (DSIGSignature *sig) | |
Constructor called when building XML structures. More... | |
virtual | ~DSIGKeyInfoX509 () |
Destructor. More... | |
Load function and get methods | |
virtual void | load () |
Function called to load an XML structure. More... | |
const char * | getX509SubjectName (void) |
Get the name of the certificate. More... | |
safeBuffer | getKeyName (void) |
Get the name of the certificate (interface function). More... | |
const char * | getX509IssuerName (void) |
Get the IssuerSerialName. More... | |
const char * | getX509IssuerSerialNumber (void) |
Get the IsserSerialNumber. More... | |
int | getCertificateListSize (void) |
Find the number of certificates held. More... | |
const char * | getCertificateItem (int item) |
Get the encoded certificate pointed to in the list. More... | |
virtual keyInfoType | getKeyInfoType (void) |
Interface function to find the type of this KeyInfo. More... | |
Create and Set functions | |
DOMElement * | createBlankX509Data (void) |
Create a new X509 data element. More... | |
void | setX509SubjectName (const char *name) |
Set the X509SubjectName element in the KeyInfo element. More... | |
void | setX509IssuerSerial (const char *name, const char *serial) |
Set the IssuerSerial element. More... | |
void | appendX509Certificate (const char *base64Certificate) |
Add a certificate. More... |
Class for holding information on a X509Data node as well as setting such a node in a signature.
|
|
|
|
|
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 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.
|