#include <ESSCertId.h>
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) |
CPKIFESSCertId::CPKIFESSCertId | ( | ) |
Interface: External
Default constuctor
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().
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
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.
Definition at line 127 of file ESSCertId.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_MESSAGE_ASN.
const CPKIFBufferPtr CPKIFESSCertId::GetCertHash | ( | ) | const |
Interface: External
This function retrives the 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.
Definition at line 160 of file ESSCertId.cpp.
void CPKIFESSCertId::GetIssuerName | ( | CPKIFGeneralNameListPtr & | issuerName | ) | const |
Interface: External
This function gets issuer name.
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
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().