libcamgm
AuthorityInfoAccessExtension.hpp
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | |
3 | _ _ _ _ __ _ |
4 | | | | | | \_/ | / \ | | |
5 | | | | | | |_| | / /\ \ | | |
6 | | |__ | | | | | | / ____ \ | |__ |
7 | |____||_| |_| |_|/ / \ \|____| |
8 | |
9 | ca-mgm library |
10 | |
11 | (C) SUSE Linux Products GmbH |
12 \----------------------------------------------------------------------/
13 
14  File: AuthorityInfoAccessExtension.hpp
15 
16  Author: <Michael Calmer> <mc@suse.de>
17  Maintainer: <Michael Calmer> <mc@suse.de>
18 
19  Purpose:
20 
21 /-*/
22 #ifndef CA_MGM_AUTHORITY_INFO_ACCESS_EXTENSION_HPP
23 #define CA_MGM_AUTHORITY_INFO_ACCESS_EXTENSION_HPP
24 
25 #include <ca-mgm/config.h>
26 #include <ca-mgm/CommonData.hpp>
27 #include <ca-mgm/LiteralValues.hpp>
28 #include <ca-mgm/ExtensionBase.hpp>
29 #include <ca-mgm/PtrTypes.hpp>
30 
31 namespace CA_MGM_NAMESPACE {
32 
33  class CA;
34  class CAConfig;
35  class AuthorityInformationImpl;
36  class AuthorityInfoAccessExtImpl;
37 
39 
40  public:
45 
60  AuthorityInformation(const std::string &accessOID,
61  const LiteralValue& location);
62 
67 
72 
73 #ifndef SWIG
74 
76  operator=(const AuthorityInformation& ai);
77 
78 #endif
79 
87  void
88  setAuthorityInformation(const std::string &accessOID,
89  const LiteralValue& location);
90 
94  std::string
95  getAccessOID() const;
96 
101  getLocation() const;
102 
108  bool
109  valid() const;
110 
118  std::vector<std::string>
119  verify() const;
120 
124  std::vector<std::string>
125  dump() const;
126 
127 #ifndef SWIG
128 
129  friend bool
131 
132  friend bool
133  operator<(const AuthorityInformation &l, const AuthorityInformation &r);
134 
135 #endif
136 
137  private:
139 
140  };
141 
160  public:
161 
166 
168 
176  AuthorityInfoAccessExt(CAConfig* caConfig, Type type);
177 
178  virtual ~AuthorityInfoAccessExt();
179 
180 #ifndef SWIG
181 
183  operator=(const AuthorityInfoAccessExt& extension);
184 
185 #endif
186 
190  void
191  setAuthorityInformation(const std::list<AuthorityInformation>& infolist);
192 
196  std::list<AuthorityInformation>
197  getAuthorityInformation() const;
198 
205  virtual void
206  commit2Config(CA& ca, Type type) const;
207 
213  virtual bool
214  valid() const;
215 
223  virtual std::vector<std::string>
224  verify() const;
225 
229  virtual std::vector<std::string>
230  dump() const;
231 
232  private:
234 
235  };
236 
237 }
238 
239 #endif // CA_MGM_AUTHORITY_INFO_ACCESS_EXTENSION_HPP
Definition: ExtensionBase.hpp:34
Managing a CA repository.
Definition: CA.hpp:54
ca_mgm::RWCOW_pointer< AuthorityInformationImpl > m_impl
Definition: AuthorityInfoAccessExtension.hpp:138
ca_mgm::RWCOW_pointer< AuthorityInfoAccessExtImpl > m_impl
Definition: AuthorityInfoAccessExtension.hpp:233
Definition: CAConfig.hpp:43
Definition: AuthorityInfoAccessExtension.hpp:38
Type
Definition: CommonData.hpp:39
Definition: AuthorityInfoAccessExtension.hpp:159
Definition: LiteralValues.hpp:41
bool operator==(const PathName &lname, const PathName &rname)
Definition: PathName.hpp:435