LeviLamina
Loading...
Searching...
No Matches
WebToken.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/deps/json/Value.h"
5
6// auto generated inclusion list
7#include "mc/deps/json/Value.h"
8
9// auto generated forward declare list
10// clang-format off
14// clang-format on
15
16class WebToken {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::std::string mHeader;
21 ::Json::Value mHeaderInfo;
22 ::std::string mData;
23 ::Json::Value mDataInfo;
24 ::std::string mSignature;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
29 WebToken();
30
31public:
32 // member functions
33 // NOLINTBEGIN
34 MCNAPI explicit WebToken(::std::string token);
35
36 MCNAPI void _parse(::Json::Value& value, ::std::string const& data);
37
38 MCNAPI ::std::string _signatureToDER() const;
39
40 MCNAPI ::std::string toString() const;
41
42 MCNAPI bool verifyWithIncludedKey(::std::vector<::std::string> const& trustedKeys) const;
43
44 MCNAPI ~WebToken();
45 // NOLINTEND
46
47public:
48 // static functions
49 // NOLINTBEGIN
50 MCNAPI static ::std::string _DERToBinary(::std::string const& derSignature, int outputLength);
51
52 MCNAPI static ::std::unique_ptr<::WebToken> createFromData(
53 ::Json::Value const& dataInfo,
54 ::PrivateKeyManager const& manager,
55 ::std::variant<::PublicKeySignatureType, ::CertificateSNIType> signatureType
56 );
57 // NOLINTEND
58
59public:
60 // constructor thunks
61 // NOLINTBEGIN
62 MCNAPI void* $ctor(::std::string token);
63 // NOLINTEND
64
65public:
66 // destructor thunk
67 // NOLINTBEGIN
68 MCNAPI void $dtor();
69 // NOLINTEND
70};
Definition Value.h:16
Definition PrivateKeyManager.h:9
Definition WebToken.h:16
MCAPI::std::string toString() const
static MCAPI ::std::unique_ptr<::WebToken > createFromData(::Json::Value const &dataInfo, ::PrivateKeyManager const &manager, ::std::variant<::PublicKeySignatureType, ::CertificateSNIType > signatureType)
static MCAPI ::std::string _DERToBinary(::std::string const &derSignature, int outputLength)
MCAPI WebToken(::std::string token)
MCAPI ~WebToken()
MCAPI void * $ctor(::std::string token)
MCAPI::std::string _signatureToDER() const
MCAPI bool verifyWithIncludedKey(::std::vector<::std::string > const &trustedKeys) const
MCAPI void _parse(::Json::Value &value, ::std::string const &data)
MCAPI void $dtor()
Definition CertificateSNIType.h:5
Definition PublicKeySignatureType.h:5