20 ::std::string mHeader;
24 ::std::string mSignature;
33 MCAPI
explicit WebToken(::std::string token);
35 MCAPI ::std::string _signatureToDER()
const;
37 MCAPI ::std::string getKeyId()
const;
39 MCAPI_C ::std::string getSignerPublicKey()
const;
41 MCAPI_S ::std::string toString()
const;
43 MCAPI
bool verifyWithExternalKey(::std::string
const& publicKey)
const;
45 MCAPI
bool verifyWithIncludedKey(::std::vector<::std::string>
const& trustedKeys)
const;
53 MCAPI static ::std::string _DERToBinary(::std::string
const& derSignature,
int outputLength);
55 MCAPI static ::std::unique_ptr<::WebToken> createFromData(
58 ::std::variant<::PublicKeySignatureType, ::CertificateSNIType> signatureType,
66 MCAPI_C
void* $ctor();
68 MCAPI
void* $ctor(::std::string token);