libdigidocpp
|
Public Member Functions | |
DemoEstEIDConsolePinSigner (const std::string &driver, const std::string &pin) throw (SignException) | |
virtual | ~DemoEstEIDConsolePinSigner () |
![]() | |
EstEIDConsolePinSigner (const std::string &driver, const std::string &prompt) throw (SignException) | |
EstEIDConsolePinSigner (const std::string &driver) throw (SignException) | |
virtual | ~EstEIDConsolePinSigner () |
void | setPrompt (const std::string &prompt) |
![]() | |
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 | ~Signer () |
void | setSignatureProductionPlace (const SignatureProductionPlace &signatureProductionPlace) |
SignatureProductionPlace | getSignatureProductionPlace () const |
void | setSignerRole (const SignerRole &signerRole) |
SignerRole | getSignerRole () const |
Private Member Functions | |
std::string | getPin (const PKCS11Cert &certificate) throw (SignException) |
PKCS11Signer::PKCS11Cert | selectSigningCertificate (const std::vector< PKCS11Signer::PKCS11Cert > &certificates) const throw (SignException) |
void | printPKCS11Cert (const PKCS11Signer::PKCS11Cert &cert) const |
Private Attributes | |
std::string | m_pin |
Additional Inherited Members | |
![]() | |
virtual std::string | getPin (const PKCS11Cert &certificate) throw (SignException) |
For demonstration purpose overwrites certificate selection to print out all the certificates available on ID-Card.
Definition at line 68 of file digidoc-tool.cpp.
DemoEstEIDConsolePinSigner::DemoEstEIDConsolePinSigner | ( | const std::string & | driver, |
const std::string & | pin | ||
) | throw (SignException) |
Initialize EstEID signed with driver implementation.
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 526 of file digidoc-tool.cpp.
|
inlinevirtual |
Definition at line 72 of file digidoc-tool.cpp.
|
private |
Definition at line 532 of file digidoc-tool.cpp.
References digidoc::EstEIDConsolePinSigner::getPin().
|
private |
Prints certificate information.
cert | X.509 certificate. |
Definition at line 561 of file digidoc-tool.cpp.
References digidoc::PKCS11Signer::PKCS11Token::label, digidoc::PKCS11Signer::PKCS11Cert::label, digidoc::PKCS11Signer::PKCS11Token::manufacturer, digidoc::PKCS11Signer::PKCS11Token::model, digidoc::PKCS11Signer::PKCS11Token::serialNr, and digidoc::PKCS11Signer::PKCS11Cert::token.
|
private |
Just show available signing certificates. Uses base class EstEIDSigner implementation to choose the correct signing certificate.
NB! If you wan to choose the certificate yourself use PKCS11Signer as base class and implement the selectSigningCertificate()
method.
Definition at line 544 of file digidoc-tool.cpp.
References digidoc::EstEIDSigner::selectSigningCertificate().
|
private |
Definition at line 80 of file digidoc-tool.cpp.