limal-ca-mgm
SubjectAlternativeNameExtension.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: SubjectAlternativeNameExtension.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_SUBJECT_ALTERNATIVE_NAME_EXTENSION_HPP
23 #define LIMAL_CA_MGM_SUBJECT_ALTERNATIVE_NAME_EXTENSION_HPP
24 
25 #include <limal/ca-mgm/config.h>
29 #include <blocxx/COWIntrusiveReference.hpp>
30 
31 namespace LIMAL_NAMESPACE {
32 
33 namespace CA_MGM_NAMESPACE {
34 
35  class CA;
36  class CAConfig;
37  class SubjectAlternativeNameExtImpl;
38 
40  public:
42 
43  SubjectAlternativeNameExt(CAConfig* caConfig, Type type);
44 
45  SubjectAlternativeNameExt(bool copyEmail,
46  const blocxx::List<LiteralValue> &alternativeNameList = blocxx::List<LiteralValue>());
47 
49 
50  virtual ~SubjectAlternativeNameExt();
51 
52 #ifndef SWIG
53 
55  operator=(const SubjectAlternativeNameExt& extension);
56 
57 #endif
58 
59  void
60  setCopyEmail(bool copyEmail);
61 
62  void
63  setAlternativeNameList(const blocxx::List<LiteralValue> &alternativeNameList = blocxx::List<LiteralValue>());
64 
65  bool
66  getCopyEmail() const;
67 
68  blocxx::List<LiteralValue>
69  getAlternativeNameList() const;
70 
71  virtual void
72  commit2Config(CA& ca, Type type) const;
73 
74  virtual bool
75  valid() const;
76 
77  virtual blocxx::StringArray
78  verify() const;
79 
80  virtual blocxx::StringArray
81  dump() const;
82 
83  private:
84  blocxx::COWIntrusiveReference<SubjectAlternativeNameExtImpl> m_impl;
85  };
86 
87 }
88 }
89 
90 #endif // LIMAL_CA_MGM_SUBJECT_ALTERNATIVE_NAME_EXTENSION_HPP