limal-ca-mgm
CRLGenerationData.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: CRLGenerationData.hpp
15 
16  Author: <Michael Calmer> <mc@suse.de>
17  Maintainer: <Michael Calmer> <mc@suse.de>
18 
19  Purpose:
20 
21 /-*/
22 
23 #ifndef LIMAL_CA_MGM_CRL_GENERATION_DATA_HPP
24 #define LIMAL_CA_MGM_CRL_GENERATION_DATA_HPP
25 
26 #include <limal/ca-mgm/config.h>
29 #include <blocxx/COWIntrusiveReference.hpp>
30 
31 namespace LIMAL_NAMESPACE
32 {
33 namespace CA_MGM_NAMESPACE
34 {
35 
36  class CA;
37  class CRLGenerationDataImpl;
44  public:
46  CRLGenerationData(CAConfig* caConfig, Type type);
47  CRLGenerationData(blocxx::UInt32 hours,
48  const X509v3CRLGenerationExts& ext);
50  virtual ~CRLGenerationData();
51 
52 #ifndef SWIG
53 
55  operator=(const CRLGenerationData& data);
56 
57 #endif
58 
59  void
60  setCRLLifeTime(blocxx::UInt32 hours);
61 
62  blocxx::UInt32
63  getCRLLifeTime() const;
64 
65  void
66  setExtensions(const X509v3CRLGenerationExts& ext);
67 
69  getExtensions() const;
70 
72  extensions();
73 
74  void
75  commit2Config(CA& ca, Type type) const;
76 
77  virtual bool
78  valid() const;
79 
80  virtual blocxx::StringArray
81  verify() const;
82 
83  virtual blocxx::StringArray
84  dump() const;
85 
86  private:
87  blocxx::COWIntrusiveReference<CRLGenerationDataImpl> m_impl;
88 
89  };
90 
91 }
92 }
93 
94 #endif // LIMAL_CA_MGM_CRL_GENERATION_DATA_HPP