LeviLamina
Loading...
Searching...
No Matches
PrivateKeyManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/certificates/KeyManager.h"
7#include "mc/deps/crypto/asymmetric/PrivateKeySigningFormat.h"
8#include "mc/deps/crypto/asymmetric/system/System.h"
9
10class PrivateKeyManager : public ::KeyManager {
11public:
12 // member variables
13 // NOLINTBEGIN
15 // NOLINTEND
16
17public:
18 // prevent constructor by default
19 PrivateKeyManager& operator=(PrivateKeyManager const&);
20 PrivateKeyManager(PrivateKeyManager const&);
21 PrivateKeyManager();
22
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual bool isValid() const /*override*/;
27
28 virtual ~PrivateKeyManager() /*override*/;
29 // NOLINTEND
30
31public:
32 // member functions
33 // NOLINTBEGIN
34 MCNAPI explicit PrivateKeyManager(::Crypto::Asymmetric::System system);
35
36#ifdef LL_PLAT_S
37 MCNAPI PrivateKeyManager(
38 ::std::string const& privateKey,
39 ::Crypto::Asymmetric::PrivateKeySigningFormat format,
40 ::Crypto::Asymmetric::System system
41 );
42
43 MCNAPI PrivateKeyManager(
44 ::std::string const& publicKey,
45 ::std::string const& privateKey,
46 ::Crypto::Asymmetric::System system
47 );
48#endif
49
50 MCNAPI ::std::string computeSecret(::KeyManager const& peer) const;
51
52#ifdef LL_PLAT_S
53 MCNAPI ::std::string getPrivateKeyPem() const;
54#endif
55 // NOLINTEND
56
57public:
58 // constructor thunks
59 // NOLINTBEGIN
60 MCNAPI void* $ctor(::Crypto::Asymmetric::System system);
61
62#ifdef LL_PLAT_S
63 MCNAPI void* $ctor(
64 ::std::string const& privateKey,
65 ::Crypto::Asymmetric::PrivateKeySigningFormat format,
66 ::Crypto::Asymmetric::System system
67 );
68
69 MCNAPI void*
70 $ctor(::std::string const& publicKey, ::std::string const& privateKey, ::Crypto::Asymmetric::System system);
71#endif
72 // NOLINTEND
73
74public:
75 // destructor thunk
76 // NOLINTBEGIN
77 MCNAPI void $dtor();
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCNAPI bool $isValid() const;
84
85
86 // NOLINTEND
87
88public:
89 // vftables
90 // NOLINTBEGIN
91 MCNAPI static void** $vftable();
92 // NOLINTEND
93};
static MCAPI void ** $vftable()
MCAPI void $dtor()
MCAPI PrivateKeyManager(::Crypto::Asymmetric::System system)
MCAPI void * $ctor(::Crypto::Asymmetric::System system)
MCAPI bool $isValid() const
MCAPI::std::string computeSecret(::KeyManager const &peer) const
Definition Alias.h:14