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 // member functions
29 // NOLINTBEGIN
30 MCNAPI WebToken();
31
32 MCNAPI explicit WebToken(::std::string token);
33
34 MCNAPI ::std::string _signatureToDER() const;
35
36 MCNAPI ::std::string toString() const;
37
38 MCNAPI bool verifyWithIncludedKey(::std::vector<::std::string> const& trustedKeys) const;
39
40 MCNAPI ~WebToken();
41 // NOLINTEND
42
43public:
44 // static functions
45 // NOLINTBEGIN
46 MCNAPI static ::std::string _DERToBinary(::std::string const& derSignature, int outputLength);
47
48 MCNAPI static ::std::unique_ptr<::WebToken> createFromData(
49 ::Json::Value const& dataInfo,
50 ::PrivateKeyManager const& manager,
51 ::std::variant<::PublicKeySignatureType, ::CertificateSNIType> signatureType
52 );
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCNAPI void* $ctor();
59
60 MCNAPI void* $ctor(::std::string token);
61 // NOLINTEND
62
63public:
64 // destructor thunk
65 // NOLINTBEGIN
66 MCNAPI void $dtor();
67 // NOLINTEND
68};
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 ~WebToken()
MCAPI void * $ctor(::std::string token)
MCAPI::std::string _signatureToDER() const
MCAPI void * $ctor()
MCAPI bool verifyWithIncludedKey(::std::vector<::std::string > const &trustedKeys) const
MCAPI void $dtor()
Definition CertificateSNIType.h:5
Definition PublicKeySignatureType.h:5