libdigidocpp
digidoc::MACX509CertStore Class Reference

#include <MACX509CertStore.h>

Inheritance diagram for digidoc::MACX509CertStore:
Inheritance graph
Collaboration diagram for digidoc::MACX509CertStore:
Collaboration graph

Public Member Functions

 MACX509CertStore () throw (IOException)
- Public Member Functions inherited from digidoc::X509CertStore
virtual ~X509CertStore ()
virtual X509_STORE * getCertStore () const throw (IOException)
virtual STACK_OF (X509)*getCerts() const throw (IOException)
virtual X509 * getCert (const X509_NAME *subject) const throw (IOException)

Private Member Functions

void loadCerts (unsigned int trustSettings) throw (IOException)

Additional Inherited Members

- Static Public Member Functions inherited from digidoc::X509CertStore
static void init (X509CertStore *impl=0)
static void destroy ()
static X509CertStoregetInstance () throw (IOException)

Detailed Description

Implementation of X.509 certificate store, which loads the certificates from the Mac KeyChain.

Definition at line 30 of file MACX509CertStore.h.

Constructor & Destructor Documentation

MACX509CertStore::MACX509CertStore ( ) throw (IOException)

Loads all certificates from KeyChain and adds these to the certificate store.

Exceptions
IOExceptionexception is throws if failed to open KeyCain

Definition at line 37 of file MACX509CertStore.cpp.

References digidoc::X509CertStore::d, INFO, and loadCerts().

Here is the call graph for this function:

Member Function Documentation

void MACX509CertStore::loadCerts ( unsigned int  trustSettings) throw (IOException)
private

Load all certificates found in KeyChain and adds these to the cert store.

Parameters
trustSettingssettings.
Exceptions
IOExceptionexception is throws if failed open KeyChain.

Definition at line 50 of file MACX509CertStore.cpp.

References certs, i, THROW_IOEXCEPTION, and WARN.

Referenced by MACX509CertStore().

Here is the caller graph for this function:


The documentation for this class was generated from the following files: