CPKIFIssuerAndSerialNumber Class Reference

#include <IssuerAndSerialNumber.h>

Collaboration diagram for CPKIFIssuerAndSerialNumber:

Collaboration graph
[legend]

List of all members.


Detailed Description

This class is used to convey information identifying a signer represented by a CPKIFSignerInfo object. When using CPKIFIssuerAndSerialNumber, the signer is identified by the distinguished name of the certification authority who issued the signer a certificate and the serial number of the certificate issued to the signer by that certification authority.

TSP-enforcing: No

Definition at line 26 of file IssuerAndSerialNumber.h.


Public Member Functions

 CPKIFIssuerAndSerialNumber ()
 CPKIFIssuerAndSerialNumber (const CPKIFBufferPtr &isnBuf)
virtual ~CPKIFIssuerAndSerialNumber ()
void SetName (CPKIFNamePtr &name)
CPKIFNamePtr GetName () const
void SetSerialNumber (CPKIFStringPtr &serialNumber)
const char * GetSerialNumber () const

Constructor & Destructor Documentation

CPKIFIssuerAndSerialNumber::CPKIFIssuerAndSerialNumber (  ) 

Interface: External

Default constructor

Returns:
None

Definition at line 36 of file IssuerAndSerialNumber.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.

CPKIFIssuerAndSerialNumber::CPKIFIssuerAndSerialNumber ( const CPKIFBufferPtr &  isnBuf  ) 

Interface: External

This constructor is invoked when parsing a CMS message; it will throw a std::bad_alloc exception if allocation of memory fails or ASN.1 decoding errors if the name form cannot be parsed.

Returns:
None Interface: External
This constructor is invoked when parsing a CMS message.
Exceptions:
std:bad_alloc thrown if memory allocation fails.
CPKIFException thrown if any ASN.1 encoding or decoding errors occur.
Returns:
None
Parameters:
isnBuf  Reference to a CACCMSIssuerAndSerialNumber structure containing information used to populate an instance of CPKIFIssuerAndSerialNumber

Definition at line 75 of file IssuerAndSerialNumber.cpp.

References CACASNWRAPPER_CREATE, LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.

CPKIFIssuerAndSerialNumber::~CPKIFIssuerAndSerialNumber (  )  [virtual]

Interface: External

This function destroys an instance of CPKIFIssuerAndSerialNumber.

Returns:
None

Definition at line 114 of file IssuerAndSerialNumber.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.


Member Function Documentation

void CPKIFIssuerAndSerialNumber::SetName ( CPKIFNamePtr &  name  ) 

Interface: External

This function is used to set the distinguished name identifying the issuing CA.

Returns:
None
Exceptions:
CPKIFMessageException(COMMON_INVALID_INPUT) 
Parameters:
name  [in] Reference to a smart pointer to a CPKIFName object containing the name to associate with an instance of CPKIFIssuerAndSerialNumber

Definition at line 130 of file IssuerAndSerialNumber.cpp.

References COMMON_INVALID_INPUT, LOG_STRING_DEBUG, TOOLKIT_MESSAGE, and TOOLKIT_MESSAGE_ASN.

CPKIFNamePtr CPKIFIssuerAndSerialNumber::GetName (  )  const

Interface: External

This function is used to get the distinguished name identifying the issuing CA.

Returns:
None

Definition at line 150 of file IssuerAndSerialNumber.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.

void CPKIFIssuerAndSerialNumber::SetSerialNumber ( CPKIFStringPtr serialNumber  ) 

Interface: External

This function is used to set the serial number identifying the desired subject’s certificate.

Returns:
None
Exceptions:
CPKIFMessageException(COMMON_INVALID_INPUT) 
Parameters:
serialNumber  [in] Reference to a smart pointer to a CPKIFString object containing the serial number to set

Definition at line 164 of file IssuerAndSerialNumber.cpp.

References COMMON_INVALID_INPUT, LOG_STRING_DEBUG, TOOLKIT_MESSAGE, and TOOLKIT_MESSAGE_ASN.

const char * CPKIFIssuerAndSerialNumber::GetSerialNumber (  )  const

Interface: External

This function is used to get the serial number identifying the desired subject’s certificate.

Returns:
None

Definition at line 183 of file IssuerAndSerialNumber.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.


The documentation for this class was generated from the following files:

Generated on Mon Nov 15 11:20:21 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6