|
Portuguese eID Middleware SDK
Version: 3.12.0
|
#include <eidlib.h>
Public Member Functions | |
| virtual PTEIDSDK_API | ~PTEID_Certificate () |
| PTEIDSDK_API const char * | getLabel () |
| PTEIDSDK_API unsigned long | getID () |
| PTEIDSDK_API PTEID_CertifType | getType () |
| PTEIDSDK_API const PTEID_ByteArray & | getCertData () |
| PTEIDSDK_API void | getFormattedData (PTEID_ByteArray &data) |
| PTEIDSDK_API const char * | getSerialNumber () |
| PTEIDSDK_API const char * | getOwnerName () |
| PTEIDSDK_API const char * | getSubjectSerialNumber () |
| PTEIDSDK_API const char * | getIssuerName () |
| PTEIDSDK_API const char * | getValidityBegin () |
| PTEIDSDK_API const char * | getValidityEnd () |
| PTEIDSDK_API unsigned long | getKeyLength () |
| PTEIDSDK_API PTEID_CertifStatus | getStatus () |
| PTEIDSDK_API PTEID_CertifStatus | getStatus (bool useCache, bool validateChain) |
| PTEIDSDK_API bool | isRoot () |
| PTEIDSDK_API bool | isTest () |
| PTEIDSDK_API bool | isFromPteidValidChain () |
| PTEIDSDK_API bool | isFromCard () |
| PTEIDSDK_API bool | verifyDateValidity () |
| PTEIDSDK_API PTEID_Certificate & | getIssuer () |
| PTEIDSDK_API unsigned long | countChildren () |
| PTEIDSDK_API PTEID_Certificate & | getChildren (unsigned long ulIndex) |
Public Member Functions inherited from eIDMW::PTEID_Object | |
| virtual PTEIDSDK_API | ~PTEID_Object ()=0 |
| NOEXPORT_PTEIDSDK void | Init (const SDK_Context *context, void *impl) |
| NOEXPORT_PTEIDSDK void | Release () |
Friends | |
| PTEID_Certificate & | PTEID_Certificates::getCert (unsigned long ulIndex) |
| PTEID_Certificate & | PTEID_Certificates::getCertFromCard (unsigned long ulIndex) |
| PTEID_Certificate & | PTEID_Certificates::getCert (PTEID_CertifType type) |
| PTEID_Certificate & | PTEID_Certificates::addCertificate (PTEID_ByteArray &cert) |
Additional Inherited Members | |
Protected Member Functions inherited from eIDMW::PTEID_Object | |
| PTEID_Object (const SDK_Context *context, void *impl) | |
| void | addObject (PTEID_Object *impl) |
| void | backupObject (unsigned long idx) |
| PTEID_Object * | getObject (unsigned long idx) |
| PTEID_Object * | getObject (void *impl) |
| void | delObject (unsigned long idx) |
| void | delObject (void *impl) |
| void | checkContextStillOk () const |
| PTEID_Object (const PTEID_Object &obj) | |
| PTEID_Object & | operator= (const PTEID_Object &obj) |
Protected Attributes inherited from eIDMW::PTEID_Object | |
| bool | m_delimpl |
| void * | m_impl |
| unsigned long | m_ulIndexExtAdd |
| std::map< unsigned long, PTEID_Object * > | m_objects |
| SDK_Context * | m_context |
Class that represents one certificate.
|
virtual |
Destructor
| PTEIDSDK_API unsigned long eIDMW::PTEID_Certificate::countChildren | ( | ) |
Return the number of children for this certificate.
| PTEIDSDK_API const PTEID_ByteArray& eIDMW::PTEID_Certificate::getCertData | ( | ) |
Return the content of the certificate
| PTEIDSDK_API PTEID_Certificate& eIDMW::PTEID_Certificate::getChildren | ( | unsigned long | ulIndex | ) |
Return the children certificate (certificate that has been issued by this one).
| ulIndex | is the children index (the index for the first child is 0) Throw PTEID_ExParamRange exception if the index is out of range |
| PTEIDSDK_API void eIDMW::PTEID_Certificate::getFormattedData | ( | PTEID_ByteArray & | data | ) |
Return the content of the certificate without ending zero
| PTEIDSDK_API unsigned long eIDMW::PTEID_Certificate::getID | ( | ) |
Return the id of the certificate
| PTEIDSDK_API PTEID_Certificate& eIDMW::PTEID_Certificate::getIssuer | ( | ) |
Return the issuer certificate.
if there is no issuer (root), PTEID_ExCertNoIssuer exception is thrown
| PTEIDSDK_API const char* eIDMW::PTEID_Certificate::getIssuerName | ( | ) |
Return the name of the issuer of the certificate
| PTEIDSDK_API unsigned long eIDMW::PTEID_Certificate::getKeyLength | ( | ) |
Return the length of public/private key on the certificate
| PTEIDSDK_API const char* eIDMW::PTEID_Certificate::getLabel | ( | ) |
Return the label of the certificate
| PTEIDSDK_API const char* eIDMW::PTEID_Certificate::getOwnerName | ( | ) |
Return the name of the owner of the certificate
| PTEIDSDK_API const char* eIDMW::PTEID_Certificate::getSerialNumber | ( | ) |
Return the serial number of the certificate
| PTEIDSDK_API PTEID_CertifStatus eIDMW::PTEID_Certificate::getStatus | ( | ) |
Return OCSP/CRL validation status
| PTEIDSDK_API PTEID_CertifStatus eIDMW::PTEID_Certificate::getStatus | ( | bool | useCache, |
| bool | validateChain | ||
| ) |
OCSP/CRL validation status
| useCache | boolean that specifies if cached certificates can be utilized for the validation (default true) |
| validateChain | boolean that specifies if the entire certificate chain is to be validated or not (default true) |
| PTEIDSDK_API const char* eIDMW::PTEID_Certificate::getSubjectSerialNumber | ( | ) |
Return the serial number of the subject of the certificate
| PTEIDSDK_API PTEID_CertifType eIDMW::PTEID_Certificate::getType | ( | ) |
Return the type of the certificate
| PTEIDSDK_API const char* eIDMW::PTEID_Certificate::getValidityBegin | ( | ) |
Return the validity begin date of the certificate
| PTEIDSDK_API const char* eIDMW::PTEID_Certificate::getValidityEnd | ( | ) |
Return the validity end date of the certificate
| PTEIDSDK_API bool eIDMW::PTEID_Certificate::isFromCard | ( | ) |
This certificate comes from the card.
| PTEIDSDK_API bool eIDMW::PTEID_Certificate::isFromPteidValidChain | ( | ) |
Return true if the certificate chain end by the one of pteid root.
| PTEIDSDK_API bool eIDMW::PTEID_Certificate::isRoot | ( | ) |
Return true if this is a root certificate.
| PTEIDSDK_API bool eIDMW::PTEID_Certificate::isTest | ( | ) |
Return the test status.
| PTEIDSDK_API bool eIDMW::PTEID_Certificate::verifyDateValidity | ( | ) |
Return true if the current time is between the certificate's notBefore and notAfter
|
friend |
For internal use : This method must access protected constructor
|
friend |
For internal use : This method must access protected constructor
|
friend |
For internal use : This method must access protected constructor
|
friend |
For internal use : This method must access protected constructor