libcamgm
AuthorityKeyIdentifierExtension.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: AuthorityKeyIdentifierExtension.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_KEY_IDENTIFIER_EXTENSION_HPP
23 #define CA_MGM_AUTHORITY_KEY_IDENTIFIER_EXTENSION_HPP
24 
25 #include <ca-mgm/config.h>
26 #include <ca-mgm/CommonData.hpp>
27 #include <ca-mgm/ExtensionBase.hpp>
28 #include <ca-mgm/PtrTypes.hpp>
29 
30 namespace CA_MGM_NAMESPACE {
31 
32  class AuthorityKeyIdentifierExtImpl;
33 
35  public:
36 
39  virtual ~AuthorityKeyIdentifierExt();
40 
41 #ifndef SWIG
42 
44  operator=(const AuthorityKeyIdentifierExt& extension);
45 
46 #endif
47 
51  std::string
52  getKeyID() const;
53 
57  std::string
58  getDirName() const;
59 
63  std::string
64  getSerial() const;
65 
71  virtual bool
72  valid() const;
73 
81  virtual std::vector<std::string>
82  verify() const;
83 
87  virtual std::vector<std::string>
88  dump() const;
89 
90  protected:
92 
93  void
94  setKeyID(const std::string& kid);
95 
96  void
97  setDirName(const std::string& dirName);
98 
99  void
100  setSerial(const std::string& serial);
101 
102  private:
103  virtual void commit2Config(CA& ca, Type type) const;
104  };
105 
106 }
107 
108 #endif // CA_MGM_AUTHORITY_KEY_IDENTIFIER_EXTENSION_HPP
Definition: ExtensionBase.hpp:34
Managing a CA repository.
Definition: CA.hpp:54
ca_mgm::RWCOW_pointer< AuthorityKeyIdentifierExtImpl > m_impl
Definition: AuthorityKeyIdentifierExtension.hpp:91
Type
Definition: CommonData.hpp:39
Definition: AuthorityKeyIdentifierExtension.hpp:34