Skip to main content

ERUCES::TECertObjectInfo

#include <tecertobj.h>

The TECertObjectInfo class provides methods for maintaining certificate objects.

It is derived from the TEUpdatableObject class. Certificates of type PKCS-7.

Inheritance

Static Public Attributes

TypeNameDescription
_TESTD stringCLASSNAME

Public Member Functions

MemberDescription
TECertObjectInfo()The TECertObjectInfo constructor is the default class constructor.
TECertObjectInfo(const TECertObjectInfo &)The TECertObjectInfo constructor copies an TECertObjectInfo object.
~TECertObjectInfo()The TECertObjectInfo destructor is the class destructor.
void setSubjectName(const _TESTD string &sub)The setSubjectName method sets a certificate's subject name.
void getSubjectName(_TESTD string &sub) constThe getSubjectName method gets a certificate's subject name.
void setEffectiveDate(time_t t)The setEffectiveDate method sets the date when a certificate goes into effect.
time_t getEffectiveDate() constThe getEffectiveDate method gets the date when a certificate goes into effect.
void setExpirationDate(time_t t)The setExpirationDate method sets the date when a certificate expires.
time_t getExpirationDate() constThe getExpirationDate method gets the date when a certificate expires.
void setSerialNo(const _TESTD string &sn)The setSerialNo method sets a certificate's serial number.
void getSerialNo(_TESTD string &sn) constThe getSerialNo method gets a certificate's serial number.
void setIssuerName(const _TESTD string &iname)The setIssuerName method sets the name of a certificate issuer.
void getIssuerName(_TESTD string &iname) constThe getIssuerName method gets the name of a certificate's issuer.
void setCertHash(const _TESTD string &hash)The setCertHash method sets the hash value of the certificate.
void getCertHash(_TESTD string &hash) constThe getCertHash method retrieves the hash value of the certificate.
void setCertificate(const _TESTD string &cert)The setCertificate method sets certificate information.
void getCertificate(_TESTD string &cert) constThe getCertificate method gets information about a certificate.
void setStatus(long status)The setStatus method sets a certificate's status.
long getStatus() constThe getStatus method gets a certificate's status.
void setCertificateId(te_oid id)The setCertificateId method sets a certificate's ID.
te_oid getCertificateId() constThe getCertificateId method gets a certificate ID.
const _TESTD string getClassName() constThe getClassName method gets the TECertObjectInfo class name.
TEObject * clone() constThe clone method clones an object.

Member Function Documentation

TECertObjectInfo()

The TECertObjectInfo constructor is the default class constructor.

TECertObjectInfo(const TECertObjectInfo &)

The TECertObjectInfo constructor copies an TECertObjectInfo object.

~TECertObjectInfo()

The TECertObjectInfo destructor is the class destructor.

void setSubjectName(const _TESTD string &sub)

The setSubjectName method sets a certificate's subject name.

Parameters

ParameterDescription
subA string representing a certificate's subject name.

void getSubjectName(_TESTD string &sub) const

The getSubjectName method gets a certificate's subject name.

Parameters

ParameterDescription
subA string representing a subject name.

void setEffectiveDate(time_t t)

The setEffectiveDate method sets the date when a certificate goes into effect.

Parameters

ParameterDescription
tThe date when the certificate goes into effect.

time_t getEffectiveDate() const

The getEffectiveDate method gets the date when a certificate goes into effect.

Returns: Returns a certificate's effective date.

void setExpirationDate(time_t t)

The setExpirationDate method sets the date when a certificate expires.

Parameters

ParameterDescription
tThe date when the certificate expires.

time_t getExpirationDate() const

The getExpirationDate method gets the date when a certificate expires.

Returns: Returns a certificate's expiration date.

void setSerialNo(const _TESTD string &sn)

The setSerialNo method sets a certificate's serial number.

Parameters

ParameterDescription
snA string representing the certificate's serial number.

void getSerialNo(_TESTD string &sn) const

The getSerialNo method gets a certificate's serial number.

Parameters

ParameterDescription
snA string representing the certificate's serial number.

void setIssuerName(const _TESTD string &iname)

The setIssuerName method sets the name of a certificate issuer.

Parameters

ParameterDescription
inameA string representing the name of a certificate issuer.

void getIssuerName(_TESTD string &iname) const

The getIssuerName method gets the name of a certificate's issuer.

Parameters

ParameterDescription
inameA string representing the name of a certificate issuer.

void setCertHash(const _TESTD string &hash)

The setCertHash method sets the hash value of the certificate.

Parameters

ParameterDescription
hashA string representing the hash value of the certificate.

void getCertHash(_TESTD string &hash) const

The getCertHash method retrieves the hash value of the certificate.

Parameters

ParameterDescription
hashA string representing the hash value of the certificate.

void setCertificate(const _TESTD string &cert)

The setCertificate method sets certificate information.

Parameters

ParameterDescription
certBinary data representing certificate information of type PKCS-7.

void getCertificate(_TESTD string &cert) const

The getCertificate method gets information about a certificate.

Parameters

ParameterDescription
certBinary data representing certificate information of type PKCS-7.

void setStatus(long status)

The setStatus method sets a certificate's status.

Parameters

ParameterDescription
statusCertificate object's status.

long getStatus() const

The getStatus method gets a certificate's status.

Returns: Certificate object's status.

void setCertificateId(te_oid id)

The setCertificateId method sets a certificate's ID.

Parameters

ParameterDescription
idA certificate ID. It must be either CERTIFICATE_CA or CERTIFICATE_REGULAR

te_oid getCertificateId() const

The getCertificateId method gets a certificate ID.

Returns: A cerrtificate ID. It's either CERTIFICATE_CA or CERTIFICATE_REGULAR

const _TESTD string getClassName() const

The getClassName method gets the TECertObjectInfo class name.

Returns: Returns the class name, TECertObjectInfo.

TEObject * clone() const

The clone method clones an object.

Returns: Returns a newly cloned TECertObjectInfo object.