libdigidocpp
|
#include <X509CertStore.h>
Public Member Functions | |
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) |
Static Public Member Functions | |
static void | init (X509CertStore *impl=0) |
static void | destroy () |
static X509CertStore * | getInstance () throw (IOException) |
Private Member Functions | |
X509CertStore () |
Private Attributes | |
X509CertStorePrivate * | d |
Static Private Attributes | |
static X509CertStore * | INSTANCE = 0 |
Friends | |
class | DirectoryX509CertStore |
class | MSX509CertStore |
class | MACX509CertStore |
Definition at line 30 of file X509CertStore.h.
|
virtual |
Release all certificates.
Definition at line 61 of file X509CertStore.cpp.
References d, and digidoc::X509CertStorePrivate::store.
|
privatevirtual |
X509CertStore constructor.
Definition at line 50 of file X509CertStore.cpp.
References d, digidoc::X509CertStorePrivate::store, and digidoc::X509CertStorePrivate::verify_callback().
|
static |
Releases the X.509 certificate store implementation.
Definition at line 97 of file X509CertStore.cpp.
References INSTANCE.
Referenced by digidoc::terminate().
|
virtual |
Searches certificate by subject and returns a copy of it if found. If not found returns NULL
. NB! The returned certificate must be freed with OpenSSL function X509_free(X509* cert).
subject | certificate subject. |
NULL
if certificate was not found. IOException | exception is thrown if copying certificate failed. |
Definition at line 143 of file X509CertStore.cpp.
References digidoc::X509Cert::copyX509(), and i.
Referenced by digidoc::SignatureTM::notarize(), and digidoc::SignatureBES::validateOnline().
|
virtual |
Return X509_STORE containing all certs loaded from directory
Definition at line 129 of file X509CertStore.cpp.
Referenced by digidoc::X509Cert::verify().
|
static |
Definition at line 106 of file X509CertStore.cpp.
References INSTANCE, and THROW_IOEXCEPTION.
Referenced by init(), digidoc::SignatureTM::notarize(), digidoc::SignatureTM::validateOffline(), digidoc::SignatureBES::validateOnline(), and digidoc::X509Cert::verify().
|
static |
Sets the X.509 certificate store implementation.
impl | X.509 certificate store implementation or 0 for platform default. |
Definition at line 73 of file X509CertStore.cpp.
References CERTS_PATH, DirectoryX509CertStore, getInstance(), INSTANCE, MACX509CertStore, and MSX509CertStore.
Referenced by digidoc::initialize(), and main().
|
virtual |
|
friend |
Definition at line 49 of file X509CertStore.h.
Referenced by init().
|
friend |
Definition at line 51 of file X509CertStore.h.
Referenced by init().
|
friend |
Definition at line 50 of file X509CertStore.h.
Referenced by init().
|
private |
Definition at line 47 of file X509CertStore.h.
Referenced by digidoc::MACX509CertStore::MACX509CertStore(), digidoc::MSX509CertStore::MSX509CertStore(), X509CertStore(), and ~X509CertStore().
|
staticprivate |
X.509 certificate store implementation.
Definition at line 46 of file X509CertStore.h.
Referenced by destroy(), getInstance(), and init().