Portuguese eID Middleware SDK
Version: 3.12.0
|
#include <eidlib.h>
Public Member Functions | |
virtual PTEIDSDK_API | ~PTEID_Certificates () |
PTEIDSDK_API unsigned long | countFromCard () |
PTEIDSDK_API unsigned long | countAll () |
PTEIDSDK_API PTEID_Certificate & | getCertFromCard (unsigned long ulIndexCard) |
PTEIDSDK_API PTEID_Certificate & | getCert (unsigned long ulIndexAll) |
PTEIDSDK_API PTEID_Certificate & | getCert (PTEID_CertifType type) |
PTEIDSDK_API PTEID_Certificate & | getRoot () |
PTEIDSDK_API PTEID_Certificate & | getCA () |
PTEIDSDK_API PTEID_Certificate & | getSignature () |
PTEIDSDK_API PTEID_Certificate & | getAuthentication () |
PTEIDSDK_API PTEID_Certificate & | addCertificate (PTEID_ByteArray &cert) |
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_Certificates & | PTEID_Card::getCertificates () |
PTEID_Certificates & | PTEID_CMDSignatureClient::getCertificates () |
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 |
Container class for all certificates on the card.
|
virtual |
Destructor
PTEIDSDK_API PTEID_Certificate& eIDMW::PTEID_Certificates::addCertificate | ( | PTEID_ByteArray & | cert | ) |
Add a new certificate to the store.
PTEIDSDK_API unsigned long eIDMW::PTEID_Certificates::countAll | ( | ) |
The number of certificates (on the card or not)
PTEIDSDK_API unsigned long eIDMW::PTEID_Certificates::countFromCard | ( | ) |
The number of certificates on the card
PTEIDSDK_API PTEID_Certificate& eIDMW::PTEID_Certificates::getAuthentication | ( | ) |
Return the authentication certificate from the card
PTEIDSDK_API PTEID_Certificate& eIDMW::PTEID_Certificates::getCA | ( | ) |
Return the ca certificate from the card
PTEIDSDK_API PTEID_Certificate& eIDMW::PTEID_Certificates::getCert | ( | unsigned long | ulIndexAll | ) |
Return the certificate with the number ulIndexAll.
ATTENTION ulIndexAll and ulIndexCard are two different index. Index will change if new certificates are added with addCert().
PTEIDSDK_API PTEID_Certificate& eIDMW::PTEID_Certificates::getCert | ( | PTEID_CertifType | type | ) |
Return the certificate by type.
PTEIDSDK_API PTEID_Certificate& eIDMW::PTEID_Certificates::getCertFromCard | ( | unsigned long | ulIndexCard | ) |
Get the ulIndex certificate from the card. Throw PTEID_ExParamRange exception if the index is out of range.
PTEIDSDK_API PTEID_Certificate& eIDMW::PTEID_Certificates::getRoot | ( | ) |
Return the root certificate from the card
PTEIDSDK_API PTEID_Certificate& eIDMW::PTEID_Certificates::getSignature | ( | ) |
Return the signature certificate from the card
|
friend |
For internal use : This method must access protected constructor
For internal use : This method must access protected constructor