Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
WebToken Class Reference

Public Member Functions

MCAPI WebToken (::WebToken const &)
MCAPI::std::string getKeyId () const
MCAPI::WebToken & operator= (::WebToken &&)
MCAPI::WebToken & operator= (::WebToken const &)
MCAPI bool verifyWithExternalKey (::std::string const &publicKey, ::std::optional<::Crypto::Asymmetric::System > expectedSystem) const
MCAPI bool verifyWithIncludedKey (::std::vector<::std::string > const &trustedKeys) const
MCAPI void * $ctor (::WebToken const &)
MCAPI void $dtor ()

Static Public Member Functions

static MCAPI ::std::optional<::WebToken > createFromData (::Json::Value const &dataInfo, ::PrivateKeyManager const &manager)
static MCAPI ::std::optional<::WebToken > createFromData (::Json::Value const &dataInfo, ::PrivateKeyManager const &manager, ::Json::Value const &extraHeaders, ::std::variant<::PublicKeySignatureType, ::CertificateSNIType > const &signatureType)
static MCAPI ::std::optional<::WebToken > parse (::std::string_view token, uint64 maxLength)

Public Attributes

::std::string mHeader
::Json::Value mHeaderInfo
::std::string mData
::Json::Value mDataInfo
::std::string mSignature

Constructor & Destructor Documentation

◆ WebToken()

MCAPI WebToken::WebToken ( ::WebToken const & )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ getKeyId()

MCAPI::std::string WebToken::getKeyId ( ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ operator=() [1/2]

MCAPI::WebToken & WebToken::operator= ( ::WebToken && )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ operator=() [2/2]

MCAPI::WebToken & WebToken::operator= ( ::WebToken const & )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ verifyWithExternalKey()

MCAPI bool WebToken::verifyWithExternalKey ( ::std::string const & publicKey,
::std::optional<::Crypto::Asymmetric::System > expectedSystem ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ verifyWithIncludedKey()

MCAPI bool WebToken::verifyWithIncludedKey ( ::std::vector<::std::string > const & trustedKeys) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ createFromData() [1/2]

MCAPI ::std::optional<::WebToken > WebToken::createFromData ( ::Json::Value const & dataInfo,
::PrivateKeyManager const & manager )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ createFromData() [2/2]

MCAPI ::std::optional<::WebToken > WebToken::createFromData ( ::Json::Value const & dataInfo,
::PrivateKeyManager const & manager,
::Json::Value const & extraHeaders,
::std::variant<::PublicKeySignatureType, ::CertificateSNIType > const & signatureType )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ parse()

MCAPI ::std::optional<::WebToken > WebToken::parse ( ::std::string_view token,
uint64 maxLength )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * WebToken::$ctor ( ::WebToken const & )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: