libcamgm
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
src
ca-mgm
AuthorityKeyIdentifierGenerateExtension.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: AuthorityKeyIdentifierGenerateExtension.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_AUTHORITY_KEY_IDENTIFIER_GENERATE_EXTENSION_HPP
23
#define CA_MGM_AUTHORITY_KEY_IDENTIFIER_GENERATE_EXTENSION_HPP
24
25
#include <ca-mgm/config.h>
26
#include <
ca-mgm/CommonData.hpp
>
27
#include <
ca-mgm/ExtensionBase.hpp
>
28
#include <
ca-mgm/PtrTypes.hpp
>
29
30
namespace
CA_MGM_NAMESPACE {
31
32
class
CA;
33
class
CAConfig;
34
class
AuthorityKeyIdentifierGenerateExtImpl;
35
42
class
AuthorityKeyIdentifierGenerateExt
:
public
ExtensionBase
{
43
public
:
44
45
enum
KeyID
{
46
KeyID_none
,
47
KeyID_normal
,
48
KeyID_always
49
};
50
51
enum
Issuer
{
52
Issuer_none
,
53
Issuer_normal
,
54
Issuer_always
55
};
56
57
AuthorityKeyIdentifierGenerateExt
();
58
AuthorityKeyIdentifierGenerateExt
(
CAConfig
* caConfig,
Type
type);
59
63
AuthorityKeyIdentifierGenerateExt
(KeyID kid, Issuer iss);
64
AuthorityKeyIdentifierGenerateExt
(
const
AuthorityKeyIdentifierGenerateExt
& extension);
65
virtual
~
AuthorityKeyIdentifierGenerateExt
();
66
67
#ifndef SWIG
68
69
AuthorityKeyIdentifierGenerateExt
&
70
operator=(
const
AuthorityKeyIdentifierGenerateExt
& extension);
71
72
#endif
73
77
void
78
setKeyID(KeyID kid);
79
83
KeyID
84
getKeyID()
const
;
85
89
void
90
setIssuer(Issuer iss);
91
95
Issuer
96
getIssuer()
const
;
97
104
virtual
void
105
commit2Config(
CA
& ca,
Type
type)
const
;
106
112
virtual
bool
113
valid()
const
;
114
122
virtual
std::vector<std::string>
123
verify()
const
;
124
128
virtual
std::vector<std::string>
129
dump()
const
;
130
131
private
:
132
ca_mgm::RWCOW_pointer<AuthorityKeyIdentifierGenerateExtImpl>
m_impl
;
133
134
};
135
136
}
137
138
#endif // CA_MGM_AUTHORITY_KEY_IDENTIFIER_GENERATE_EXTENSION_HPP
Generated by
1.8.2