libdigidocpp
|
#include <EstEIDSigner.h>
Public Member Functions | |
EstEIDSigner (const std::string &driver) throw (SignException) | |
virtual | ~EstEIDSigner () |
int | type () const |
![]() | |
PKCS11Signer () throw (SignException) | |
PKCS11Signer (const std::string &driver) throw (SignException) | |
virtual | ~PKCS11Signer () |
X509 * | getCert () const throw (SignException) |
void | sign (const Digest &digest, Signature &signature) throw (SignException) |
void | loadDriver () throw (SignException) |
void | loadDriver (const std::string &driver) throw (SignException) |
void | unloadDriver () |
virtual std::string | getPin (const PKCS11Cert &certificate)=0 throw (SignException) |
![]() | |
virtual | ~Signer () |
void | setSignatureProductionPlace (const SignatureProductionPlace &signatureProductionPlace) |
SignatureProductionPlace | getSignatureProductionPlace () const |
void | setSignerRole (const SignerRole &signerRole) |
SignerRole | getSignerRole () const |
Protected Member Functions | |
virtual PKCS11Cert | selectSigningCertificate (const std::vector< PKCS11Cert > &certificates) const throw (SignException) |
Implements EstEID ID-Card signer. Selects the correct certificate for signing by implementing abstract method selectSigningCertificate
, which select the correct certificate by certificate key usage.
Definition at line 33 of file EstEIDSigner.h.
digidoc::EstEIDSigner::EstEIDSigner | ( | const std::string & | driver | ) | throw (SignException) |
Initializes base class PKCS11Signer.
driver | full path to the PKCS #11 driver (e.g. /usr/lib/opensc-pkcs11.so) |
SignException | exception is thrown if the provided PKCS #11 driver loading failed. |
Definition at line 37 of file EstEIDSigner.cpp.
|
virtual |
Definition at line 45 of file EstEIDSigner.cpp.
|
protectedvirtual |
Implements signing certificate selector for EstEID ID-Cards.
certificates | list of certificates to choose from. List of all certificates found ID-card. |
SignException | throws exception if no suitable certificate was found. |
Implements digidoc::PKCS11Signer.
Definition at line 57 of file EstEIDSigner.cpp.
References i, digidoc::X509Cert::NonRepudiation, and THROW_SIGNEXCEPTION.
Referenced by DemoEstEIDConsolePinSigner::selectSigningCertificate().
|
virtual |
Reimplemented from digidoc::Signer.
Definition at line 72 of file EstEIDSigner.cpp.
References digidoc::X509Cert::getCertificatePolicies(), digidoc::Conf::getInstance(), digidoc::X509Cert::getPaddingSize(), i, and digidoc::Digest::toMethod().