limal-ca-mgm
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 LIMAL_CA_MGM_REQUEST_DATA_HPP
23 #define LIMAL_CA_MGM_REQUEST_DATA_HPP
24 
25 #include <limal/ca-mgm/config.h>
29 #include <limal/ByteBuffer.hpp>
30 #include <blocxx/COWIntrusiveReference.hpp>
31 
32 namespace LIMAL_NAMESPACE {
33 
34 namespace CA_MGM_NAMESPACE {
35 
36  class RequestDataImpl;
37 
43  class RequestData {
44  public:
45  RequestData(const RequestData& data);
46  virtual ~RequestData();
47 
48 #ifndef SWIG
49 
51  operator=(const RequestData& data);
52 
53 #endif
54 
55  blocxx::UInt32
56  getVersion() const;
57 
58  blocxx::UInt32
59  getKeysize() const;
60 
61  DNObject
62  getSubjectDN() const;
63 
64  KeyAlg
65  getKeyAlgorithm() const;
66 
68  getPublicKey() const;
69 
70  SigAlg
71  getSignatureAlgorithm() const;
72 
74  getSignature() const;
75 
77  getExtensions() const;
78 
79  String
80  getChallengePassword() const;
81 
82  String
83  getUnstructuredName() const;
84 
89  String
90  getRequestAsText() const;
91 
96  String
97  getExtensionsAsText() const;
98 
99  virtual bool
100  valid() const;
101 
102  virtual blocxx::StringArray
103  verify() const;
104 
105  virtual blocxx::StringArray
106  dump() const;
107 
108  protected:
109  blocxx::COWIntrusiveReference<RequestDataImpl> m_impl;
110 
111  RequestData();
112 
113  };
114 
115 }
116 }
117 
118 #endif // LIMAL_CA_MGM_REQUEST_DATA_HPP