XML Configuration class.
More...
#include <XmlConf.h>
Inherits digidoc::Conf.
◆ XmlConf()
XmlConf::XmlConf |
( |
const std::string & |
path = "" , |
|
|
const std::string & |
schema = "" |
|
) |
| |
|
explicit |
◆ ~XmlConf()
◆ digestUri()
std::string digidoc::XmlConf::digestUri |
( |
| ) |
const |
|
overridevirtual |
Return default digest type as URI
Reimplemented from digidoc::Conf.
◆ logFile()
std::string digidoc::XmlConf::logFile |
( |
| ) |
const |
|
overridevirtual |
Gets log file location. Default log goes to standard out stream
Reimplemented from digidoc::Conf.
◆ logLevel()
int digidoc::XmlConf::logLevel |
( |
| ) |
const |
|
overridevirtual |
Returns log level. 0 = Error 1 = Warn 2 = Info 3 = Debug
Reimplemented from digidoc::Conf.
◆ ocsp()
string XmlConf::ocsp |
( |
const std::string & |
issuer | ) |
const |
|
overridevirtual |
◆ PKCS11Driver()
std::string digidoc::XmlConf::PKCS11Driver |
( |
| ) |
const |
|
overridevirtual |
Returns PKCS11 driver file path
Reimplemented from digidoc::Conf.
◆ PKCS12Cert()
std::string digidoc::XmlConf::PKCS12Cert |
( |
| ) |
const |
|
overridevirtual |
Gets PKCS12 certificate file location.
Used for signing OCSP request
Reimplemented from digidoc::Conf.
◆ PKCS12Disable()
bool digidoc::XmlConf::PKCS12Disable |
( |
| ) |
const |
|
overridevirtual |
◆ PKCS12Pass()
std::string digidoc::XmlConf::PKCS12Pass |
( |
| ) |
const |
|
overridevirtual |
◆ proxyForceSSL()
bool digidoc::XmlConf::proxyForceSSL |
( |
| ) |
const |
|
overridevirtual |
Redirect SSL traffic over proxy server Default: false
Reimplemented from digidoc::Conf.
◆ proxyHost()
std::string digidoc::XmlConf::proxyHost |
( |
| ) |
const |
|
overridevirtual |
◆ proxyPass()
std::string digidoc::XmlConf::proxyPass |
( |
| ) |
const |
|
overridevirtual |
◆ proxyPort()
std::string digidoc::XmlConf::proxyPort |
( |
| ) |
const |
|
overridevirtual |
◆ proxyTunnelSSL()
bool digidoc::XmlConf::proxyTunnelSSL |
( |
| ) |
const |
|
overridevirtual |
Tunnel SSL traffic over proxy server Default: false
Reimplemented from digidoc::Conf.
◆ proxyUser()
std::string digidoc::XmlConf::proxyUser |
( |
| ) |
const |
|
overridevirtual |
◆ setPKCS12Cert()
void digidoc::XmlConf::setPKCS12Cert |
( |
const std::string & |
cert | ) |
|
|
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.
- Parameters
-
cert | PKCS#12 certificate location path. |
- Exceptions
-
Exception | exception is thrown if saving a PKCS#12 certificate path into a user configuration file fails. |
◆ setPKCS12Disable()
void digidoc::XmlConf::setPKCS12Disable |
( |
bool |
disable | ) |
|
|
virtual |
Sets a PKCS#12 certificate usage. Also adds or replaces PKCS#12 certificate usage in the user configuration file.
- Parameters
-
disable | PKCS#12 certificate usage. |
- Exceptions
-
Exception | exception is thrown if saving a PKCS#12 certificate usage into a user configuration file fails. |
◆ setPKCS12Pass()
void digidoc::XmlConf::setPKCS12Pass |
( |
const std::string & |
pass | ) |
|
|
virtual |
Sets a PKCS#12 certificate password. Also adds or replaces PKCS#12 certificate password in the user configuration file.
- Parameters
-
pass | PKCS#12 certificate password. |
- Exceptions
-
Exception | exception is thrown if saving a PKCS#12 certificate password into a user configuration file fails. |
◆ setProxyHost()
void digidoc::XmlConf::setProxyHost |
( |
const std::string & |
host | ) |
|
|
virtual |
Sets a Proxy host address. Also adds or replaces proxy host data in the user configuration file.
- Parameters
-
- Exceptions
-
Exception | exception is thrown if saving a proxy host address into a user configuration file fails. |
◆ setProxyPass()
void digidoc::XmlConf::setProxyPass |
( |
const std::string & |
pass | ) |
|
|
virtual |
Sets a Proxy password. Also adds or replaces proxy password in the user configuration file.
- Parameters
-
- Exceptions
-
Exception | exception is thrown if saving a proxy password into a user configuration file fails. |
◆ setProxyPort()
void digidoc::XmlConf::setProxyPort |
( |
const std::string & |
port | ) |
|
|
virtual |
Sets a Proxy port number. Also adds or replaces proxy port data in the user configuration file.
- Parameters
-
- Exceptions
-
Exception | exception is thrown if saving a proxy port number into a user configuration file fails. |
◆ setProxyTunnelSSL()
virtual void digidoc::XmlConf::setProxyTunnelSSL |
( |
bool |
enable | ) |
|
|
virtual |
◆ setProxyUser()
void digidoc::XmlConf::setProxyUser |
( |
const std::string & |
user | ) |
|
|
virtual |
Sets a Proxy user name. Also adds or replaces proxy user name in the user configuration file.
- Parameters
-
- Exceptions
-
Exception | exception is thrown if saving a proxy user name into a user configuration file fails. |
◆ setTSLOnlineDigest()
void digidoc::XmlConf::setTSLOnlineDigest |
( |
bool |
enable | ) |
|
|
virtual |
Enables/Disables online digest check
- Exceptions
-
Exception | exception is thrown if saving a TSL online digest into a user configuration file fails. |
◆ setTSLTimeOut()
void digidoc::XmlConf::setTSLTimeOut |
( |
int |
timeOut | ) |
|
|
virtual |
Sets TSL connection timeout
- Parameters
-
timeOut | Time out in seconds |
- Exceptions
-
Exception | exception is thrown if saving a TSL timeout into a user configuration file fails. |
◆ setTSUrl()
void digidoc::XmlConf::setTSUrl |
( |
const std::string & |
url | ) |
|
|
virtual |
Sets a PKCS#12 certificate password. Also adds or replaces PKCS#12 certificate password in the user configuration file.
- Parameters
-
url | Target URL to connect TSA service. |
- Exceptions
-
Exception | exception is thrown if saving a TS URL into a user configuration file fails. |
◆ signatureDigestUri()
std::string digidoc::XmlConf::signatureDigestUri |
( |
| ) |
const |
|
overridevirtual |
◆ TSLAutoUpdate()
bool digidoc::XmlConf::TSLAutoUpdate |
( |
| ) |
const |
|
overridevirtual |
Download new TSL list when it is expired or invalid
Reimplemented from digidoc::Conf.
◆ TSLCache()
std::string digidoc::XmlConf::TSLCache |
( |
| ) |
const |
|
overridevirtual |
TSL cache path in local file system
Reimplemented from digidoc::Conf.
◆ TSLOnlineDigest()
bool digidoc::XmlConf::TSLOnlineDigest |
( |
| ) |
const |
|
overridevirtual |
Compare local TSL digest with digest published online to check for newer version
Reimplemented from digidoc::Conf.
◆ TSLTimeOut()
int digidoc::XmlConf::TSLTimeOut |
( |
| ) |
const |
|
overridevirtual |
Gets TSL downloading connection's current timeout value
Reimplemented from digidoc::Conf.
◆ TSUrl()
std::string digidoc::XmlConf::TSUrl |
( |
| ) |
const |
|
overridevirtual |
Returns default time-stamp server URL
Reimplemented from digidoc::Conf.
◆ verifyServiceUri()
std::string digidoc::XmlConf::verifyServiceUri |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: