libdigidocpp 4.1.0
|
Version 2 of XML Configuration class. More...
#include <XmlConf.h>
Inherits digidoc::ConfV2.
Public Member Functions | |
XmlConfV2 (const std::string &path="", const std::string &schema="") | |
~XmlConfV2 () override | |
int | logLevel () const override |
std::string | logFile () const override |
std::string | PKCS11Driver () const override |
std::string | proxyHost () const override |
std::string | proxyPort () const override |
std::string | proxyUser () const override |
std::string | proxyPass () const override |
bool | proxyForceSSL () const override |
bool | proxyTunnelSSL () const override |
std::string | digestUri () const override |
std::string | signatureDigestUri () const override |
std::string | ocsp (const std::string &issuer) const override |
std::string | TSUrl () const override |
X509Cert | verifyServiceCert () const override |
std::string | verifyServiceUri () const override |
DIGIDOCPP_DEPRECATED std::string | PKCS12Cert () const override |
DIGIDOCPP_DEPRECATED std::string | PKCS12Pass () const override |
DIGIDOCPP_DEPRECATED bool | PKCS12Disable () const override |
bool | TSLAutoUpdate () const override |
std::string | TSLCache () const override |
bool | TSLOnlineDigest () const override |
int | TSLTimeOut () const override |
virtual void | setProxyHost (const std::string &host) |
virtual void | setProxyPort (const std::string &port) |
virtual void | setProxyUser (const std::string &user) |
virtual void | setProxyPass (const std::string &pass) |
virtual void | setProxyTunnelSSL (bool enable) |
virtual DIGIDOCPP_DEPRECATED void | setPKCS12Cert (const std::string &cert) |
virtual DIGIDOCPP_DEPRECATED void | setPKCS12Pass (const std::string &pass) |
virtual DIGIDOCPP_DEPRECATED void | setPKCS12Disable (bool disable) |
virtual void | setTSLOnlineDigest (bool enable) |
virtual void | setTSLTimeOut (int timeOut) |
virtual void | setTSUrl (const std::string &url) |
virtual void | setVerifyServiceUri (const std::string &url) |
Public Member Functions inherited from digidoc::ConfV2 | |
ConfV2 () | |
~ConfV2 () override | |
Public Member Functions inherited from digidoc::Conf | |
Conf () | |
virtual | ~Conf () |
virtual DIGIDOCPP_DEPRECATED std::string | libdigidocConf () const |
virtual DIGIDOCPP_DEPRECATED std::string | certsPath () const |
virtual std::string | xsdPath () const |
virtual bool | TSLAllowExpired () const |
virtual std::vector< X509Cert > | TSLCerts () const |
virtual std::string | TSLUrl () const |
Static Public Member Functions | |
static XmlConfV2 * | instance () |
Static Public Member Functions inherited from digidoc::ConfV2 | |
static ConfV2 * | instance () |
Static Public Member Functions inherited from digidoc::Conf | |
static void | init (Conf *conf) |
static Conf * | instance () |
|
explicit |
|
overridedefault |
|
overridevirtual |
Return default digest type as URI
Reimplemented from digidoc::Conf.
|
static |
Return global config instance object
References digidoc::Conf::instance().
|
overridevirtual |
Gets log file location. Default log goes to standard out stream
Reimplemented from digidoc::Conf.
|
overridevirtual |
Returns log level. 0 = Error 1 = Warn 2 = Info 3 = Debug
Reimplemented from digidoc::Conf.
|
overridevirtual |
Return OCSP request URL
issuer | OCSP issuer. |
Reimplemented from digidoc::Conf.
References digidoc::Conf::ocsp().
|
overridevirtual |
Returns PKCS11 driver file path
Reimplemented from digidoc::Conf.
|
overridevirtual |
Gets PKCS12 certificate file location.
Used for signing OCSP request
Reimplemented from digidoc::Conf.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Redirect SSL traffic over proxy server Default: false
Reimplemented from digidoc::Conf.
|
overridevirtual |
Gets proxy host address.
Reimplemented from digidoc::Conf.
|
overridevirtual |
Gets proxy login password.
Reimplemented from digidoc::Conf.
|
overridevirtual |
Gets proxy port number.
Reimplemented from digidoc::Conf.
|
overridevirtual |
Tunnel SSL traffic over proxy server Default: false
Reimplemented from digidoc::Conf.
|
overridevirtual |
Gets proxy user name.
Reimplemented from digidoc::Conf.
|
virtual |
Sets a PKCS#12 certficate path. Also adds or replaces PKCS#12 certificate path in the user configuration file. By default the PKCS#12 certificate file should be located at default path, given by getUserConfDir() function.
cert | PKCS#12 certificate location path. |
Exception | exception is thrown if saving a PKCS#12 certificate path into a user configuration file fails. |
|
virtual |
Sets a PKCS#12 certificate usage. Also adds or replaces PKCS#12 certificate usage in the user configuration file.
disable | PKCS#12 certificate usage. |
Exception | exception is thrown if saving a PKCS#12 certificate usage into a user configuration file fails. |
|
virtual |
Sets a PKCS#12 certificate password. Also adds or replaces PKCS#12 certificate password in the user configuration file.
pass | PKCS#12 certificate password. |
Exception | exception is thrown if saving a PKCS#12 certificate password into a user configuration file fails. |
|
virtual |
Sets a Proxy host address. Also adds or replaces proxy host data in the user configuration file.
host | proxy host address. |
Exception | exception is thrown if saving a proxy host address into a user configuration file fails. |
|
virtual |
Sets a Proxy password. Also adds or replaces proxy password in the user configuration file.
pass | proxy password. |
Exception | exception is thrown if saving a proxy password into a user configuration file fails. |
|
virtual |
Sets a Proxy port number. Also adds or replaces proxy port data in the user configuration file.
port | proxy port number. |
Exception | exception is thrown if saving a proxy port number into a user configuration file fails. |
|
virtual |
Enables SSL proxy connections
Exception | exception is thrown if saving into a user configuration file fails. |
|
virtual |
Sets a Proxy user name. Also adds or replaces proxy user name in the user configuration file.
user | proxy user name. |
Exception | exception is thrown if saving a proxy user name into a user configuration file fails. |
|
virtual |
Enables/Disables online digest check
Exception | exception is thrown if saving a TSL online digest into a user configuration file fails. |
|
virtual |
Sets TSL connection timeout
timeOut | Time out in seconds |
Exception | exception is thrown if saving a TSL timeout into a user configuration file fails. |
|
virtual |
Sets a TSA service URL. Also adds or replaces TSA service URL in the user configuration file.
url | Target URL to connect TSA service. |
Exception | exception is thrown if saving a TS service URL into a user configuration file fails. |
|
virtual |
Sets a Verify service URL. Also adds or replaces Verify service URL in the user configuration file.
url | Target URL to connect Verify service. |
Exception | exception is thrown if saving a Verify service URL into a user configuration file fails. |
|
overridevirtual |
Gets signature digest URI
Reimplemented from digidoc::Conf.
|
overridevirtual |
Download new TSL list when it is expired or invalid
Reimplemented from digidoc::Conf.
|
overridevirtual |
TSL cache path in local file system
Reimplemented from digidoc::Conf.
|
overridevirtual |
Compare local TSL digest with digest published online to check for newer version
Reimplemented from digidoc::Conf.
|
overridevirtual |
Gets TSL downloading connection's current timeout value
Reimplemented from digidoc::Conf.
|
overridevirtual |
Returns default time-stamp server URL
Reimplemented from digidoc::Conf.
|
overridevirtual |
Gets verify service Cert
Reimplemented from digidoc::ConfV2.
References digidoc::ConfV2::verifyServiceCert().
|
overridevirtual |
Gets verify service URI
Reimplemented from digidoc::Conf.