libcamgm
RequestGenerationData.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: RequestGenerationData.hpp
15 
16  Author: <Michael Calmer> <mc@suse.de>
17  Maintainer: <Michael Calmer> <mc@suse.de>
18 
19  Purpose:
20 
21 /-*/
22 
23 #ifndef CA_MGM_REQUEST_GENERATION_DATA_HPP
24 #define CA_MGM_REQUEST_GENERATION_DATA_HPP
25 
26 #include <ca-mgm/config.h>
27 #include <ca-mgm/CommonData.hpp>
28 #include <ca-mgm/DNObject.hpp>
30 #include <ca-mgm/PtrTypes.hpp>
31 
32 namespace CA_MGM_NAMESPACE
33 {
34 
35  class CA;
36  class CAConfig;
37  class RequestGenerationDataImpl;
38 
45  public:
47 
51  RequestGenerationData(CAConfig* caConfig, Type type);
53  virtual ~RequestGenerationData();
54 
55 #ifndef SWIG
56 
58  operator=(const RequestGenerationData& data);
59 
60 #endif
61 
62  void
63  setSubjectDN(const DNObject dn);
64 
65  DNObject
66  getSubjectDN() const;
67 
68  DNObject&
69  subjectDN();
70 
71  void
72  setKeysize(uint32_t size);
73 
74  uint32_t
75  getKeysize() const;
76 
77  void
78  setMessageDigest(MD md);
79 
80  MD
81  getMessageDigest() const;
82 
83  void
84  setChallengePassword(const std::string &passwd);
85 
86  std::string
87  getChallengePassword() const;
88 
89  void
90  setUnstructuredName(const std::string &name);
91 
92  std::string
93  getUnstructuredName() const;
94 
95  void
96  setExtensions(const X509v3RequestExts &ext);
97 
99  getExtensions() const;
100 
102  extensions();
103 
107  void
108  commit2Config(CA& ca, Type type) const;
109 
110  virtual bool
111  valid() const;
112 
113  virtual std::vector<std::string>
114  verify() const;
115 
116  virtual std::vector<std::string>
117  dump() const;
118 
119  private:
121 
122  };
123 }
124 #endif //CA_MGM_REQUEST_GENERATION_DATA_HPP
Managing a CA repository.
Definition: CA.hpp:54
Definition: DNObject.hpp:72
Data representation for generating a certificate request.
Definition: RequestGenerationData.hpp:44
MD
Definition: CommonData.hpp:70
Definition: CAConfig.hpp:43
Type
Definition: CommonData.hpp:39
ca_mgm::RWCOW_pointer< RequestGenerationDataImpl > m_impl
Definition: RequestGenerationData.hpp:120
Collection of X509v3 extension for certificate requests.
Definition: X509v3RequestExtensions.hpp:48