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
- Inherits ERUCES::TEUpdatableObject
Static Public Attributes
| Type | Name | Description |
|---|---|---|
| _TESTD string | CLASSNAME |
Public Member Functions
| Member | Description |
|---|---|
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) const | The 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() const | The 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() const | The 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) const | The 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) const | The 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) const | The 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) const | The getCertificate method gets information about a certificate. |
void setStatus(long status) | The setStatus method sets a certificate's status. |
long getStatus() const | The getStatus method gets a certificate's status. |
void setCertificateId(te_oid id) | The setCertificateId method sets a certificate's ID. |
te_oid getCertificateId() const | The getCertificateId method gets a certificate ID. |
const _TESTD string getClassName() const | The getClassName method gets the TECertObjectInfo class name. |
TEObject * clone() const | The 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
| Parameter | Description |
|---|---|
sub | A string representing a certificate's subject name. |
void getSubjectName(_TESTD string &sub) const
The getSubjectName method gets a certificate's subject name.
Parameters
| Parameter | Description |
|---|---|
sub | A string representing a subject name. |
void setEffectiveDate(time_t t)
The setEffectiveDate method sets the date when a certificate goes into effect.
Parameters
| Parameter | Description |
|---|---|
t | The 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
| Parameter | Description |
|---|---|
t | The 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
| Parameter | Description |
|---|---|
sn | A string representing the certificate's serial number. |
void getSerialNo(_TESTD string &sn) const
The getSerialNo method gets a certificate's serial number.
Parameters
| Parameter | Description |
|---|---|
sn | A string representing the certificate's serial number. |
void setIssuerName(const _TESTD string &iname)
The setIssuerName method sets the name of a certificate issuer.
Parameters
| Parameter | Description |
|---|---|
iname | A 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
| Parameter | Description |
|---|---|
iname | A 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
| Parameter | Description |
|---|---|
hash | A 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
| Parameter | Description |
|---|---|
hash | A string representing the hash value of the certificate. |
void setCertificate(const _TESTD string &cert)
The setCertificate method sets certificate information.
Parameters
| Parameter | Description |
|---|---|
cert | Binary data representing certificate information of type PKCS-7. |
void getCertificate(_TESTD string &cert) const
The getCertificate method gets information about a certificate.
Parameters
| Parameter | Description |
|---|---|
cert | Binary data representing certificate information of type PKCS-7. |
void setStatus(long status)
The setStatus method sets a certificate's status.
Parameters
| Parameter | Description |
|---|---|
status | Certificate 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
| Parameter | Description |
|---|---|
id | A 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.