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