libcamgm
RequestData.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: RequestData.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_REQUEST_DATA_HPP
23 #define CA_MGM_REQUEST_DATA_HPP
24 
25 #include <ca-mgm/config.h>
26 #include <ca-mgm/CommonData.hpp>
28 #include <ca-mgm/DNObject.hpp>
29 #include <ca-mgm/ByteBuffer.hpp>
30 #include <ca-mgm/PtrTypes.hpp>
31 
32 
33 namespace CA_MGM_NAMESPACE {
34 
35  class RequestDataImpl;
36 
42  class RequestData {
43  public:
44  RequestData(const RequestData& data);
45  virtual ~RequestData();
46 
47 #ifndef SWIG
48 
50  operator=(const RequestData& data);
51 
52 #endif
53 
54  uint32_t
55  getVersion() const;
56 
57  uint32_t
58  getKeysize() const;
59 
60  DNObject
61  getSubjectDN() const;
62 
63  KeyAlg
64  getKeyAlgorithm() const;
65 
67  getPublicKey() const;
68 
69  SigAlg
70  getSignatureAlgorithm() const;
71 
73  getSignature() const;
74 
76  getExtensions() const;
77 
78  std::string
79  getChallengePassword() const;
80 
81  std::string
82  getUnstructuredName() const;
83 
88  std::string
89  getRequestAsText() const;
90 
95  std::string
96  getExtensionsAsText() const;
97 
98  virtual bool
99  valid() const;
100 
101  virtual std::vector<std::string>
102  verify() const;
103 
104  virtual std::vector<std::string>
105  dump() const;
106 
107  protected:
109 
110  RequestData();
111 
112  };
113 
114 }
115 
116 #endif // CA_MGM_REQUEST_DATA_HPP
Definition: DNObject.hpp:72
Read-only data representation of a request.
Definition: RequestData.hpp:42
SigAlg
Definition: CommonData.hpp:60
KeyAlg
Definition: CommonData.hpp:54
LiMaL byte buffer class.
ca_mgm::RWCOW_pointer< RequestDataImpl > m_impl
Definition: RequestData.hpp:108
Buffer for storing binary data.
Definition: ByteBuffer.hpp:55
Collection of X509v3 extension for certificate requests.
Definition: X509v3RequestExtensions.hpp:48