|
libdigidocpp
|
#include <EstEIDConsolePinSigner.h>


Public Member Functions | |
| 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) |
Public Member Functions inherited from digidoc::EstEIDSigner | |
| EstEIDSigner (const std::string &driver) throw (SignException) | |
| virtual | ~EstEIDSigner () |
| int | type () const |
Public Member Functions inherited from digidoc::PKCS11Signer | |
| 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 () |
Public Member Functions inherited from digidoc::Signer | |
| virtual | ~Signer () |
| void | setSignatureProductionPlace (const SignatureProductionPlace &signatureProductionPlace) |
| SignatureProductionPlace | getSignatureProductionPlace () const |
| void | setSignerRole (const SignerRole &signerRole) |
| SignerRole | getSignerRole () const |
Protected Member Functions | |
| virtual std::string | getPin (const PKCS11Cert &certificate) throw (SignException) |
Protected Member Functions inherited from digidoc::EstEIDSigner | |
| virtual PKCS11Cert | selectSigningCertificate (const std::vector< PKCS11Cert > &certificates) const throw (SignException) |
Private Attributes | |
| std::string | prompt |
EstEID ID-Card signer with interactive PIN acquisition from console.
Definition at line 31 of file EstEIDConsolePinSigner.h.
| digidoc::EstEIDConsolePinSigner::EstEIDConsolePinSigner | ( | const std::string & | driver, |
| const std::string & | prompt | ||
| ) | throw (SignException) |
EstEID ID-Card signer with interactive acquisition from console.
| driver | full path to the PKCS #11 driver (e.g. /usr/lib/opensc-pkcs11.so) |
| prompt | prompt that is printed to console if PIN code is acquired. The prompt must cotain s, it is replaced with token label. For example with ID-kaart (PIN2, Allkirjastamine). |
| SignException | exception is thrown if the provided PKCS #11 driver loading failed. |
Definition at line 41 of file EstEIDConsolePinSigner.cpp.
| digidoc::EstEIDConsolePinSigner::EstEIDConsolePinSigner | ( | const std::string & | driver | ) | throw (SignException) |
EstEID ID-Card signer with interactive acquisition from console.
| 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 54 of file EstEIDConsolePinSigner.cpp.
|
virtual |
Definition at line 63 of file EstEIDConsolePinSigner.cpp.
|
protectedvirtual |
Asks PIN code from the user using console and returns it.
| certificate | the certificate, which PIN code is asked. |
| SignException | throws an exception if the login process is canceled. |
Implements digidoc::PKCS11Signer.
Definition at line 82 of file EstEIDConsolePinSigner.cpp.
References e, digidoc::Log::format(), i, digidoc::Exception::PINCanceled, and digidoc::Exception::setCode().
Referenced by DemoEstEIDConsolePinSigner::getPin().


| void digidoc::EstEIDConsolePinSigner::setPrompt | ( | const std::string & | prompt | ) |
| prompt | sets the prompt value. |
Definition at line 70 of file EstEIDConsolePinSigner.cpp.
|
private |
Definition at line 44 of file EstEIDConsolePinSigner.h.