libcamgm
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
src
ca-mgm
CRLData.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: CRLData.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_CRL_DATA_HPP
23
#define CA_MGM_CRL_DATA_HPP
24
25
#include <ca-mgm/config.h>
26
#include <
ca-mgm/CommonData.hpp
>
27
#include <
ca-mgm/CRLReason.hpp
>
28
#include <
ca-mgm/DNObject.hpp
>
29
#include <
ca-mgm/X509v3CRLExtensions.hpp
>
30
#include <
ca-mgm/ByteBuffer.hpp
>
31
#include <
ca-mgm/PtrTypes.hpp
>
32
33
namespace
CA_MGM_NAMESPACE {
34
35
class
RevocationEntryImpl;
36
class
CRLDataImpl;
37
38
class
RevocationEntry
{
39
public
:
40
RevocationEntry
();
41
RevocationEntry
(
const
RevocationEntry
& entry);
42
virtual
~
RevocationEntry
();
43
44
#ifndef SWIG
45
46
RevocationEntry
&
47
operator=(
const
RevocationEntry
& entry);
48
49
#endif
50
51
std::string
52
getSerial()
const
;
53
54
time_t
55
getRevocationDate()
const
;
56
57
CRLReason
58
getReason()
const
;
59
60
virtual
bool
61
valid()
const
;
62
63
virtual
std::vector<std::string>
64
verify()
const
;
65
66
virtual
std::vector<std::string>
67
dump()
const
;
68
69
protected
:
70
ca_mgm::RWCOW_pointer<RevocationEntryImpl>
m_impl
;
71
72
};
73
79
class
CRLData
{
80
public
:
81
CRLData
(
const
CRLData
& data);
82
virtual
~
CRLData
();
83
84
#ifndef SWIG
85
86
CRLData
&
87
operator=(
const
CRLData
& data);
88
89
#endif
90
91
int32_t
92
getVersion()
const
;
93
94
std::string
95
getFingerprint()
const
;
96
97
time_t
98
getLastUpdateDate()
const
;
99
100
time_t
101
getNextUpdateDate()
const
;
102
103
DNObject
104
getIssuerDN()
const
;
105
106
SigAlg
107
getSignatureAlgorithm()
const
;
108
109
std::string
110
getSignatureAlgorithmAsString()
const
;
111
112
ca_mgm::ByteBuffer
113
getSignature()
const
;
114
115
X509v3CRLExts
116
getExtensions()
const
;
117
118
std::map<std::string, RevocationEntry>
119
getRevocationData()
const
;
120
121
RevocationEntry
122
getRevocationEntry(
const
std::string& oid);
123
128
std::string
129
getCRLAsText()
const
;
130
135
std::string
136
getExtensionsAsText()
const
;
137
138
virtual
bool
139
valid()
const
;
140
141
virtual
std::vector<std::string>
142
verify()
const
;
143
144
virtual
std::vector<std::string>
145
dump()
const
;
146
147
protected
:
148
ca_mgm::RWCOW_pointer<CRLDataImpl>
m_impl
;
149
150
CRLData
();
151
152
std::vector<std::string>
153
checkRevocationData(
const
std::map<std::string, RevocationEntry>& rd)
const
;
154
155
};
156
157
}
158
159
#endif // CA_MGM_CRL_DATA_HPP
ca_mgm::CRLReason
Definition:
CRLReason.hpp:33
ca_mgm::DNObject
Definition:
DNObject.hpp:72
DNObject.hpp
CommonData.hpp
ca_mgm::RWCOW_pointer< RevocationEntryImpl >
ca_mgm::RevocationEntry
Definition:
CRLData.hpp:38
ca_mgm::RevocationEntry::m_impl
ca_mgm::RWCOW_pointer< RevocationEntryImpl > m_impl
Definition:
CRLData.hpp:70
ca_mgm::CRLData::m_impl
ca_mgm::RWCOW_pointer< CRLDataImpl > m_impl
Definition:
CRLData.hpp:148
ca_mgm::CRLData
Read-only data representation of a CRL.
Definition:
CRLData.hpp:79
ca_mgm::SigAlg
SigAlg
Definition:
CommonData.hpp:60
ca_mgm::X509v3CRLExts
Collection of X509v3 extension for presenting CRLs.
Definition:
X509v3CRLExtensions.hpp:42
ByteBuffer.hpp
LiMaL byte buffer class.
X509v3CRLExtensions.hpp
ca_mgm::ByteBuffer
Buffer for storing binary data.
Definition:
ByteBuffer.hpp:55
PtrTypes.hpp
CRLReason.hpp
Generated by
1.8.8