Portuguese eID Middleware SDK  Version: 3.12.0
eIDMW::PTEID_Certificates Class Reference

#include <eidlib.h>

Public Member Functions

virtual PTEIDSDK_API ~PTEID_Certificates ()
 
PTEIDSDK_API unsigned long countFromCard ()
 
PTEIDSDK_API unsigned long countAll ()
 
PTEIDSDK_API PTEID_CertificategetCertFromCard (unsigned long ulIndexCard)
 
PTEIDSDK_API PTEID_CertificategetCert (unsigned long ulIndexAll)
 
PTEIDSDK_API PTEID_CertificategetCert (PTEID_CertifType type)
 
PTEIDSDK_API PTEID_CertificategetRoot ()
 
PTEIDSDK_API PTEID_CertificategetCA ()
 
PTEIDSDK_API PTEID_CertificategetSignature ()
 
PTEIDSDK_API PTEID_CertificategetAuthentication ()
 
PTEIDSDK_API PTEID_CertificateaddCertificate (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_CertificatesPTEID_Card::getCertificates ()
 
PTEID_CertificatesPTEID_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_ObjectgetObject (unsigned long idx)
 
PTEID_ObjectgetObject (void *impl)
 
void delObject (unsigned long idx)
 
void delObject (void *impl)
 
void checkContextStillOk () const
 
 PTEID_Object (const PTEID_Object &obj)
 
PTEID_Objectoperator= (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
 

Detailed Description

Container class for all certificates on the card.

Constructor & Destructor Documentation

◆ ~PTEID_Certificates()

virtual PTEIDSDK_API eIDMW::PTEID_Certificates::~PTEID_Certificates ( )
virtual

Destructor

Member Function Documentation

◆ addCertificate()

PTEIDSDK_API PTEID_Certificate& eIDMW::PTEID_Certificates::addCertificate ( PTEID_ByteArray cert)

Add a new certificate to the store.

◆ countAll()

PTEIDSDK_API unsigned long eIDMW::PTEID_Certificates::countAll ( )

The number of certificates (on the card or not)

◆ countFromCard()

PTEIDSDK_API unsigned long eIDMW::PTEID_Certificates::countFromCard ( )

The number of certificates on the card

◆ getAuthentication()

PTEIDSDK_API PTEID_Certificate& eIDMW::PTEID_Certificates::getAuthentication ( )

Return the authentication certificate from the card

◆ getCA()

PTEIDSDK_API PTEID_Certificate& eIDMW::PTEID_Certificates::getCA ( )

Return the ca certificate from the card

◆ getCert() [1/2]

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().

◆ getCert() [2/2]

PTEIDSDK_API PTEID_Certificate& eIDMW::PTEID_Certificates::getCert ( PTEID_CertifType  type)

Return the certificate by type.

◆ getCertFromCard()

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.

◆ getRoot()

PTEIDSDK_API PTEID_Certificate& eIDMW::PTEID_Certificates::getRoot ( )

Return the root certificate from the card

◆ getSignature()

PTEIDSDK_API PTEID_Certificate& eIDMW::PTEID_Certificates::getSignature ( )

Return the signature certificate from the card

Friends And Related Function Documentation

◆ PTEID_Card::getCertificates

For internal use : This method must access protected constructor

◆ PTEID_CMDSignatureClient::getCertificates

For internal use : This method must access protected constructor