CPKIFESSCertId Class Reference

#include <ESSCertId.h>

Collaboration diagram for CPKIFESSCertId:

Collaboration graph
[legend]

List of all members.


Detailed Description

This class provides support for the CMS Timestamp attribute. See CPKIFSignerInfo::AddSignedAttribute for details on how to create and associate CMS attributes with signed data objects.

TSP-enforcing: No

Definition at line 27 of file ESSCertId.h.


Public Member Functions

 CPKIFESSCertId ()
 CPKIFESSCertId (const CPKIFBufferPtr &buf)
 CPKIFESSCertId (const CPKIFCertificatePtr &cert)
 ~CPKIFESSCertId ()
const CPKIFBufferPtr GetCertHash () const
const char * GetSerialNumber () const
void GetIssuerName (CPKIFGeneralNameListPtr &issuerName) const
void SetCertificate (const CPKIFCertificatePtr &cert)

Constructor & Destructor Documentation

CPKIFESSCertId::CPKIFESSCertId (  ) 

Interface: External

Default constuctor

Returns:
None

Definition at line 43 of file ESSCertId.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.

CPKIFESSCertId::CPKIFESSCertId ( const CPKIFBufferPtr &  buf  ) 

Interface: External

The parameterized version of the constructor is called from CPKIFESSCertIdFactory::create().

Returns:
None
Parameters:
buf  [in] The value to parse into a timestamp attribute.

Definition at line 76 of file ESSCertId.cpp.

References CACASNWRAPPER_CREATE, COMMON_INVALID_INPUT, LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.

CPKIFESSCertId::CPKIFESSCertId ( const CPKIFCertificatePtr &  cert  ) 

Interface: External

Build an ESSCertiId from a certificate reference

Returns:
None
Parameters:
cert  [IN] certificate for which an ESS identifier is needed

Definition at line 58 of file ESSCertId.cpp.

References LOG_STRING_DEBUG, SetCertificate(), and TOOLKIT_MESSAGE_ASN.

CPKIFESSCertId::~CPKIFESSCertId (  ) 

Interface: External

Destroys a CPKIFESSCertId object.

Returns:
None

Definition at line 127 of file ESSCertId.cpp.

References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.


Member Function Documentation

const CPKIFBufferPtr CPKIFESSCertId::GetCertHash (  )  const

Interface: External

This function retrives the certificate hash

Returns:
Smart pointer to CPKIFBuffer object containing certificate hash

Definition at line 172 of file ESSCertId.cpp.

const char * CPKIFESSCertId::GetSerialNumber (  )  const

Interface: External

This function gets the issuer serial number. The issuer serial number is retrived from the issuer certificate.

Returns:
A pointer to a NULL-terminated buffer containing the serial number from the issuer certificate.

Definition at line 160 of file ESSCertId.cpp.

void CPKIFESSCertId::GetIssuerName ( CPKIFGeneralNameListPtr &  issuerName  )  const

Interface: External

This function gets issuer name.

Returns:
None
Parameters:
issuerName  [out] Smart pointer to CPKIFGeneralNameList object containing issuer name

Definition at line 146 of file ESSCertId.cpp.

void CPKIFESSCertId::SetCertificate ( const CPKIFCertificatePtr &  cert  ) 

Interface: External

Populates the cert id fields given a certificate

Returns:
None
Parameters:
cert  [out] Certificate that will populate cert id field

Definition at line 184 of file ESSCertId.cpp.

References CPKIFAlgorithm::DigestSize(), CPKIFAlgorithm::GetAlg(), GetPlatformCryptoMisc(), CPKIFAlgorithm::HashAlg(), IPKIFCryptoMisc::HashFinal(), IPKIFCryptoMisc::HashInit(), IPKIFCryptoMisc::HashUpdate(), and PKIFCRYPTO::SHA1.

Referenced by CPKIFESSCertId().


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

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