Main Page | Modules | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

DSIGKeyInfoSPKIData Class Reference
[Main Signature API]

#include <DSIGKeyInfoSPKIData.hpp>

Inheritance diagram for DSIGKeyInfoSPKIData:

Inheritance graph
[legend]
Collaboration diagram for DSIGKeyInfoSPKIData:

Collaboration graph
[legend]
List of all members.

Detailed Description

The class for <SPKIData> nodes in a KeyInfo list.

Class for holding information on a SPKIData node as well as setting such a node in a signature.


Public Member Functions

Constructors and Destructors
 DSIGKeyInfoSPKIData (DSIGSignature *sig, DOMNode *nameNode)
 Constructor used when XML exists.

 DSIGKeyInfoSPKIData (DSIGSignature *sig)
 Constructor used when XML needs to be created.

virtual ~DSIGKeyInfoSPKIData ()
 Destructor.

Load and Get functions
void load (void)
 Load an existing XML structure into this object.

unsigned int getSexpSize (void)
 Get the number of S-expressions.

virtual const XMLCh * getSexp (unsigned int index)
 returns the indicated SExpression

virtual const XMLCh * getKeyName (void)
 Get key name - unimplemented for SPKI packets.

Create and set functions
DOMElement * createBlankSPKIData (const XMLCh *Sexp)
 Create a new SPKIData element in the document.

void appendSexp (const XMLCh *Sexp)
 Append a new SPKISexp element to the SPKIData nodes.

Information Functions
virtual keyInfoType getKeyInfoType (void)
 Return type of this KeyInfo element.


Constructor & Destructor Documentation

DSIGKeyInfoSPKIData::DSIGKeyInfoSPKIData DSIGSignature sig,
DOMNode *  nameNode
 

Constructor used when XML exists.

This constructor is used by DSIGSignature objects to load an existing DOM structure into the Name element.

Parameters:
sig Calling signature object.
nameNode DOMNode to load information from

DSIGKeyInfoSPKIData::DSIGKeyInfoSPKIData DSIGSignature sig  ) 
 

Constructor used when XML needs to be created.

This constructor is used by DSIGSignature objects to create a DSIGKeyInfoSPKIData object that can then be used to create the required XML.

Parameters:
sig Calling signature object.

virtual DSIGKeyInfoSPKIData::~DSIGKeyInfoSPKIData  )  [virtual]
 

Destructor.


Member Function Documentation

void DSIGKeyInfoSPKIData::appendSexp const XMLCh *  Sexp  ) 
 

Append a new SPKISexp element to the SPKIData nodes.

Append a new SPKISexp element to the list of S-expressions that already exists.

Parameters:
Sexp Value (base64 encoded string) to set the new S-expression

DOMElement* DSIGKeyInfoSPKIData::createBlankSPKIData const XMLCh *  Sexp  ) 
 

Create a new SPKIData element in the document.

Creates a new SPKIData element and sets the first S-expression with the string passed in.

Parameters:
Sexp Value (base64 encoded string) to set the first S-expression
Returns:
The newly created DOMElement with the structure underneath.

virtual keyInfoType DSIGKeyInfoSPKIData::getKeyInfoType void   )  [inline, virtual]
 

Return type of this KeyInfo element.

Implements DSIGKeyInfo.

virtual const XMLCh* DSIGKeyInfoSPKIData::getKeyName void   )  [inline, virtual]
 

Get key name - unimplemented for SPKI packets.

Implements DSIGKeyInfo.

virtual const XMLCh* DSIGKeyInfoSPKIData::getSexp unsigned int  index  )  [virtual]
 

returns the indicated SExpression

Returns a pointer to a XMLCh buffer holding the required SExpression.

Parameters:
index The number of the SExpression to return
Returns:
A pointer to the char buffer containing the base64 encoded S-expression

unsigned int DSIGKeyInfoSPKIData::getSexpSize void   ) 
 

Get the number of S-expressions.

Returns the number of S-expressions held for this SPKIData element

Returns:
The number of S-expressions

void DSIGKeyInfoSPKIData::load void   )  [virtual]
 

Load an existing XML structure into this object.

Implements DSIGKeyInfo.


The documentation for this class was generated from the following file:
Generated on Sat Aug 9 18:36:41 2003 for XML-Security-C by doxygen 1.3.2