#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 Member Functions | |
Constructors and Destructors | |
DSIGKeyInfoX509 (const XSECEnv *env, XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *X509Data) | |
Constructor used when XML structures exist. | |
DSIGKeyInfoX509 (const XSECEnv *env) | |
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. | |
const XMLCh * | getX509CRL (void) |
Get any associated CRL. | |
const XMLCh * | getX509SKI (void) |
Get the SKI value (if set). | |
const XMLCh * | getRawRetrievalURI (void) |
Return the raw Retrieval method to find this certificate. | |
int | getCertificateListSize (void) |
Find the number of certificates held. | |
const XMLCh * | getCertificateItem (int item) |
Get the DER encoded certificate pointed to in the list. | |
XSECCryptoX509 * | getCertificateCryptoItem (int item) |
Get the Crypto Interface X509 structure version of the certificate. | |
virtual keyInfoType | getKeyInfoType (void) |
Interface function to find the type of this KeyInfo. | |
Create and Set functions | |
XERCES_CPP_NAMESPACE_QUALIFIER 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 | setX509CRL (const XMLCh *crl) |
Set the CRL element. | |
void | setX509SKI (const XMLCh *ski) |
Set the SKI element. | |
void | setRawRetrievalURI (const XMLCh *uri) |
set the retrieval URI | |
void | appendX509Certificate (const XMLCh *base64Certificate) |
Add a certificate. | |
Classes | |
struct | X509Holder |
|
|
|
|
|
Constructor used when XML structures exist. Constructor called by interface class when loading an X509Data element from DOM nodes.
|
|
Constructor called when building XML structures. Constructor called by interface 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 Crypto Interface X509 structure version of the certificate. Use the index to find the required certificate and return a pointer to the XSECCryptoX509 cert
|
|
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. |
|
Return the raw Retrieval method to find this certificate. In some cases, the KeyInfo RetrievalMethod references a raw certificate In such cases, the library simply creates a KeyInfoX509 object and sets this string to allow others to find the certificate |
|
Get any associated CRL. Return the string containing the base64 encoded CRL that was held in the X509CRL node
|
|
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 SKI value (if set). The SKI (Subject Key Identifier) can be used to reference a required certificate. If this was set in the KeyInfo element, this function will return the value
|
|
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 intercace class to load an X509Data structure from DOMNodes. Implements DSIGKeyInfo. |
|
set the retrieval URI Generally to be used by internal library processes only. This sets the retrieval URI - but does _not_ manipulate the DOM in any way.
|
|
Set the CRL element. If an X509CRL exists, replace the value with that provided, otherwise create a new element and set the value appropriately.
|
|
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 SKI element. The SKI node provides a reference to the Subject Key Identifier of a certificate. This function takes a base64 encoded ski and sets it into the appropriate node
|
|
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.
|