libdigidocpp  4.0.0
digidoc::Conf Class Reference

Configuration class which can reimplemented and virtual methods overloaded. More...

#include <Conf.h>

Inheritance diagram for digidoc::Conf:
digidoc::ConfV2 digidoc::XmlConf digidoc::ConfV3 digidoc::XmlConfV2 digidoc::ConfV4 digidoc::XmlConfV3 digidoc::ConfV5 digidoc::XmlConfV4 digidoc::XmlConfV5

Public Member Functions

 Conf ()
 
virtual ~Conf ()
 
virtual int logLevel () const
 
virtual std::string logFile () const
 
virtual DIGIDOCPP_DEPRECATED std::string libdigidocConf () const
 
virtual DIGIDOCPP_DEPRECATED std::string certsPath () const
 
virtual std::string xsdPath () const
 
virtual std::string PKCS11Driver () const
 
virtual std::string proxyHost () const
 
virtual std::string proxyPort () const
 
virtual std::string proxyUser () const
 
virtual std::string proxyPass () const
 
virtual bool proxyForceSSL () const
 
virtual bool proxyTunnelSSL () const
 
virtual std::string digestUri () const
 
virtual std::string signatureDigestUri () const
 
virtual std::string ocsp (const std::string &issuer) const
 
virtual std::string TSUrl () const
 
virtual std::string verifyServiceUri () const
 
virtual DIGIDOCPP_DEPRECATED std::string PKCS12Cert () const
 
virtual DIGIDOCPP_DEPRECATED std::string PKCS12Pass () const
 
virtual DIGIDOCPP_DEPRECATED bool PKCS12Disable () const
 
virtual bool TSLAllowExpired () const
 
virtual bool TSLAutoUpdate () const
 
virtual std::string TSLCache () const
 
virtual std::vector< X509CertTSLCerts () const
 
virtual bool TSLOnlineDigest () const
 
virtual int TSLTimeOut () const
 
virtual std::string TSLUrl () const
 

Static Public Member Functions

static void init (Conf *conf)
 
static Confinstance ()
 

Detailed Description

Configuration class which can reimplemented and virtual methods overloaded.

Deprecated:
Use digidoc::ConfV5
See also
Configuration parameters

Constructor & Destructor Documentation

◆ Conf()

Conf::Conf ( )
default

Configuration parameters

◆ ~Conf()

Conf::~Conf ( )
virtualdefault

Member Function Documentation

◆ certsPath()

string Conf::certsPath ( ) const
virtual

Gets Certificate store location.

Deprecated:
Unused

◆ digestUri()

string Conf::digestUri ( ) const
virtual

Return default digest type as URI

Reimplemented in digidoc::XmlConfV5, digidoc::XmlConfV4, digidoc::XmlConfV3, digidoc::XmlConfV2, and digidoc::XmlConf.

◆ init()

void Conf::init ( Conf conf)
static

Init global Conf with conf

Referenced by digidoc::initialize(), and digidoc::terminate().

◆ instance()

◆ libdigidocConf()

string Conf::libdigidocConf ( ) const
virtual

Returns libdigidoc library configuration file's (digidoc.ini) file location

Deprecated:
Unused

◆ logFile()

string Conf::logFile ( ) const
virtual

Gets log file location. Default log goes to standard out stream

Reimplemented in digidoc::XmlConfV5, digidoc::XmlConfV4, digidoc::XmlConfV3, digidoc::XmlConfV2, and digidoc::XmlConf.

◆ logLevel()

int Conf::logLevel ( ) const
virtual

Returns log level. 0 = Error 1 = Warn 2 = Info 3 = Debug

Reimplemented in digidoc::XmlConfV5, digidoc::XmlConfV4, digidoc::XmlConfV3, digidoc::XmlConfV2, and digidoc::XmlConf.

◆ ocsp()

string Conf::ocsp ( const std::string &  issuer) const
virtual

◆ PKCS11Driver()

string Conf::PKCS11Driver ( ) const
virtual

◆ PKCS12Cert()

string Conf::PKCS12Cert ( ) const
virtual

Gets PKCS12 certificate file location.

Used for signing OCSP request

Reimplemented in digidoc::XmlConfV5, digidoc::XmlConfV4, digidoc::XmlConfV3, digidoc::XmlConfV2, and digidoc::XmlConf.

◆ PKCS12Disable()

bool Conf::PKCS12Disable ( ) const
virtual

◆ PKCS12Pass()

string Conf::PKCS12Pass ( ) const
virtual

◆ proxyForceSSL()

bool Conf::proxyForceSSL ( ) const
virtual

Redirect SSL traffic over proxy server Default: false

Reimplemented in digidoc::XmlConfV5, digidoc::XmlConfV4, digidoc::XmlConfV3, digidoc::XmlConfV2, and digidoc::XmlConf.

◆ proxyHost()

string Conf::proxyHost ( ) const
virtual

◆ proxyPass()

string Conf::proxyPass ( ) const
virtual

Gets proxy login password.

Reimplemented in digidoc::XmlConfV5, digidoc::XmlConfV4, digidoc::XmlConfV3, digidoc::XmlConfV2, and digidoc::XmlConf.

◆ proxyPort()

string Conf::proxyPort ( ) const
virtual

◆ proxyTunnelSSL()

bool Conf::proxyTunnelSSL ( ) const
virtual

Tunnel SSL traffic over proxy server Default: false

Reimplemented in digidoc::XmlConfV5, digidoc::XmlConfV4, digidoc::XmlConfV3, digidoc::XmlConfV2, and digidoc::XmlConf.

◆ proxyUser()

string Conf::proxyUser ( ) const
virtual

◆ signatureDigestUri()

string Conf::signatureDigestUri ( ) const
virtual

◆ TSLAllowExpired()

bool Conf::TSLAllowExpired ( ) const
virtual

Allow expired TSL lists

◆ TSLAutoUpdate()

bool Conf::TSLAutoUpdate ( ) const
virtual

Download new TSL list when it is expired or invalid

Reimplemented in digidoc::XmlConfV5, digidoc::XmlConfV4, digidoc::XmlConfV3, digidoc::XmlConfV2, and digidoc::XmlConf.

◆ TSLCache()

string Conf::TSLCache ( ) const
virtual

TSL cache path in local file system

Reimplemented in digidoc::XmlConfV5, digidoc::XmlConfV4, digidoc::XmlConfV3, digidoc::XmlConfV2, and digidoc::XmlConf.

◆ TSLCerts()

vector< X509Cert > Conf::TSLCerts ( ) const
virtual

TSL master list's (LOTL) signing certificates

◆ TSLOnlineDigest()

bool Conf::TSLOnlineDigest ( ) const
virtual

Compare local TSL digest with digest published online to check for newer version

Reimplemented in digidoc::XmlConfV5, digidoc::XmlConfV4, digidoc::XmlConfV3, digidoc::XmlConfV2, and digidoc::XmlConf.

◆ TSLTimeOut()

int Conf::TSLTimeOut ( ) const
virtual

Gets TSL downloading connection's current timeout value

Reimplemented in digidoc::XmlConfV5, digidoc::XmlConfV4, digidoc::XmlConfV3, digidoc::XmlConfV2, and digidoc::XmlConf.

◆ TSLUrl()

string Conf::TSLUrl ( ) const
virtual

TSL master list's (LOTL) URL

◆ TSUrl()

string Conf::TSUrl ( ) const
virtual

Returns default time-stamp server URL

Reimplemented in digidoc::XmlConfV5, digidoc::XmlConfV4, digidoc::XmlConfV3, digidoc::XmlConfV2, and digidoc::XmlConf.

◆ verifyServiceUri()

string Conf::verifyServiceUri ( ) const
virtual

◆ xsdPath()

string Conf::xsdPath ( ) const
virtual

Gets XSD schema files path


The documentation for this class was generated from the following files: