libcamgm
AuthorityKeyIdentifierGenerateExtension.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: AuthorityKeyIdentifierGenerateExtension.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_GENERATE_EXTENSION_HPP
23 #define CA_MGM_AUTHORITY_KEY_IDENTIFIER_GENERATE_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 CA;
33  class CAConfig;
34  class AuthorityKeyIdentifierGenerateExtImpl;
35 
43  public:
44 
45  enum KeyID {
48  KeyID_always
49  };
50 
51  enum Issuer {
54  Issuer_always
55  };
56 
59 
63  AuthorityKeyIdentifierGenerateExt(KeyID kid, Issuer iss);
66 
67 #ifndef SWIG
68 
70  operator=(const AuthorityKeyIdentifierGenerateExt& extension);
71 
72 #endif
73 
77  void
78  setKeyID(KeyID kid);
79 
83  KeyID
84  getKeyID() const;
85 
89  void
90  setIssuer(Issuer iss);
91 
95  Issuer
96  getIssuer() const;
97 
104  virtual void
105  commit2Config(CA& ca, Type type) const;
106 
112  virtual bool
113  valid() const;
114 
122  virtual std::vector<std::string>
123  verify() const;
124 
128  virtual std::vector<std::string>
129  dump() const;
130 
131  private:
133 
134  };
135 
136 }
137 
138 #endif // CA_MGM_AUTHORITY_KEY_IDENTIFIER_GENERATE_EXTENSION_HPP
Definition: ExtensionBase.hpp:34
Issuer
Definition: AuthorityKeyIdentifierGenerateExtension.hpp:51
Definition: AuthorityKeyIdentifierGenerateExtension.hpp:42
Managing a CA repository.
Definition: CA.hpp:54
Definition: AuthorityKeyIdentifierGenerateExtension.hpp:46
ca_mgm::RWCOW_pointer< AuthorityKeyIdentifierGenerateExtImpl > m_impl
Definition: AuthorityKeyIdentifierGenerateExtension.hpp:132
Definition: CAConfig.hpp:43
Definition: AuthorityKeyIdentifierGenerateExtension.hpp:52
KeyID
Definition: AuthorityKeyIdentifierGenerateExtension.hpp:45
Definition: AuthorityKeyIdentifierGenerateExtension.hpp:53
Type
Definition: CommonData.hpp:39
Definition: AuthorityKeyIdentifierGenerateExtension.hpp:47