21 ::std::string mHeader;
25 ::std::string mSignature;
34 MCAPI WebToken(::WebToken
const&);
36 MCAPI ::std::string getKeyId()
const;
39 MCAPI ::std::string getSignerPublicKey()
const;
42 MCAPI ::WebToken& operator=(::WebToken&&);
44 MCAPI ::WebToken& operator=(::WebToken
const&);
46 MCAPI
bool verifyWithExternalKey(
47 ::std::string
const& publicKey,
48 ::std::optional<::Crypto::Asymmetric::System> expectedSystem
51 MCAPI
bool verifyWithIncludedKey(::std::vector<::std::string>
const& trustedKeys)
const;
59 MCAPI static ::std::optional<::WebToken>
63 MCAPI static ::std::optional<::WebToken> createFromData(
70 MCAPI static ::std::optional<::WebToken> createFromData(
74 ::std::variant<::PublicKeySignatureType, ::CertificateSNIType>
const& signatureType
77 MCAPI static ::std::optional<::WebToken> parse(::std::string_view token, uint64 maxLength);
83 MCAPI
void* $ctor(::WebToken
const&);