Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
WebSignature.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/crypto/asymmetric/system/System.h"
7
8// auto generated forward declare list
9// clang-format off
11namespace Json { class Value; }
12// clang-format on
13
14class WebSignature {
15public:
16 // member variables
17 // NOLINTBEGIN
22 // NOLINTEND
23
24public:
25 // prevent constructor by default
26 WebSignature& operator=(WebSignature const&);
27 WebSignature(WebSignature const&);
28 WebSignature();
29
30public:
31 // member functions
32 // NOLINTBEGIN
33 MCNAPI bool
34 verify(::std::string const& publicKey, ::std::optional<::Crypto::Asymmetric::System> expectedSystem) const;
35
36 MCNAPI ~WebSignature();
37 // NOLINTEND
38
39public:
40 // static functions
41 // NOLINTBEGIN
42 MCNAPI static ::std::optional<::WebSignature>
43 parseDetached(::std::string const& compactSerialization, ::std::string payload, uint64 maxLength);
44
45 MCNAPI static ::std::optional<::WebSignature>
46 sign(::std::string const& payload, ::PrivateKeyManager const& manager, ::Json::Value const& additionalProperties);
47 // NOLINTEND
48
49public:
50 // destructor thunk
51 // NOLINTBEGIN
52 MCNAPI void $dtor();
53 // NOLINTEND
54};
Definition Value.h:16
Definition PrivateKeyManager.h:10
static MCAPI ::std::optional<::WebSignature > sign(::std::string const &payload, ::PrivateKeyManager const &manager, ::Json::Value const &additionalProperties)
MCAPI bool verify(::std::string const &publicKey, ::std::optional<::Crypto::Asymmetric::System > expectedSystem) const
MCAPI ~WebSignature()
static MCAPI ::std::optional<::WebSignature > parseDetached(::std::string const &compactSerialization, ::std::string payload, uint64 maxLength)
MCAPI void $dtor()
Definition Alias.h:14