libdigidocpp
XmlConf.h
Go to the documentation of this file.
1 /*
2  * libdigidocpp
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  */
19 
20 #pragma once
21 
22 #include "Conf.h"
23 
24 namespace digidoc
25 {
26 
27 class XmlConfPrivate;
28 class EXP_DIGIDOC XmlConf: public Conf
29 {
30 public:
31  static void initialize();
32  XmlConf() throw(IOException);
33  XmlConf(const std::string& path) throw(IOException);
34  virtual ~XmlConf();
35 
36  virtual int getLogLevel() const;
37  virtual std::string getLogFile() const;
38  virtual std::string getDigestUri() const;
39  virtual std::string getSignatureUri() const;
40  virtual std::string getManifestXsdPath() const;
41  virtual std::string getXadesXsdPath() const;
42  virtual std::string getDsigXsdPath() const;
43  virtual std::string getPKCS11DriverPath() const;
44  virtual OCSPConf getOCSP(const std::string &issuer) const;
45  virtual std::string getCertStorePath() const;
46  virtual std::string getProxyHost() const;
47  virtual std::string getProxyPort() const;
48  virtual std::string getProxyUser() const;
49  virtual std::string getProxyPass() const;
50  virtual std::string getPKCS12Cert() const;
51  virtual std::string getPKCS12Pass() const;
52  virtual bool getPKCS12Disable() const;
53 
54  static std::string getUserConfDir();
55  static std::string getDefaultConfDir();
56 
57  virtual void setProxyHost( const std::string &host ) throw(IOException);
58  virtual void setProxyPort( const std::string &port ) throw(IOException);
59  virtual void setProxyUser( const std::string &user ) throw(IOException);
60  virtual void setProxyPass( const std::string &pass ) throw(IOException);
61  virtual void setPKCS12Cert( const std::string &cert ) throw(IOException);
62  virtual void setPKCS12Pass( const std::string &pass ) throw(IOException);
63  virtual void setPKCS12Disable( bool disable ) throw(IOException);
64 
65  virtual void setOCSP(const std::string &issuer, const std::string &url, const std::string &cert) throw(IOException);
66 
67 private:
69 };
70 
71 }