limal-ca-mgm
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 LIMAL_CA_MGM_AUTHORITY_KEY_IDENTIFIER_EXTENSION_HPP
23 #define LIMAL_CA_MGM_AUTHORITY_KEY_IDENTIFIER_EXTENSION_HPP
24 
25 #include <limal/ca-mgm/config.h>
28 #include <blocxx/COWIntrusiveReference.hpp>
29 
30 namespace LIMAL_NAMESPACE {
31 
32 namespace CA_MGM_NAMESPACE {
33 
34  class AuthorityKeyIdentifierExtImpl;
35 
37  public:
38 
41  virtual ~AuthorityKeyIdentifierExt();
42 
43 #ifndef SWIG
44 
46  operator=(const AuthorityKeyIdentifierExt& extension);
47 
48 #endif
49 
53  String
54  getKeyID() const;
55 
59  String
60  getDirName() const;
61 
65  String
66  getSerial() const;
67 
73  virtual bool
74  valid() const;
75 
83  virtual blocxx::StringArray
84  verify() const;
85 
89  virtual blocxx::StringArray
90  dump() const;
91 
92  protected:
93  blocxx::COWIntrusiveReference<AuthorityKeyIdentifierExtImpl> m_impl;
94 
95  void
96  setKeyID(const String& kid);
97 
98  void
99  setDirName(const String& dirName);
100 
101  void
102  setSerial(const String& serial);
103 
104  private:
105  virtual void commit2Config(CA& ca, Type type) const;
106  };
107 
108 }
109 }
110 
111 #endif // LIMAL_CA_MGM_AUTHORITY_KEY_IDENTIFIER_EXTENSION_HPP