#include <parser_jwt.h>
公共成员函数 |
|
| MAXON_METHOD Result < void > | 读取 ( UrlOrInputStream &&nameOrStream, JWTPARSERFLAGS flags, const StringDecodingRef &stringDecoding, const Block < const Char > &publicKey, const ValueReceiver < const DataDictionary & > &jsonObjects, BaseArray < Char > *originalToken) |
| MAXON_METHOD Result < void > | 读取 (const Block < const Char > &jwtString, JWTPARSERFLAGS flags, const StringDecodingRef &stringDecoding, const Block < const Char > &publicKey, const ValueReceiver < const DataDictionary & > &jsonObjects) |
| MAXON_METHOD Result < CString > | Write (const DataDictionary &jsonObject, const StringEncodingRef &stringEncoding, const Block < const Char > &privateKey) |
静态公共成员函数 |
|
| static MAXON_METHOD Interface * | Alloc ( MAXON_SOURCE_LOCATION_DECLARATION ) |
私有成员函数 |
|
| MAXON_INTERFACE_NONVIRTUAL ( JwtParserInterface , MAXON_REFERENCE_NORMAL , "net.maxon.interface.jwtparser") | |
|
private |
|
static |
| [in] | allocLocation | Source location. |
| MAXON_METHOD Result <void> Read | ( | UrlOrInputStream && | nameOrStream , |
| JWTPARSERFLAGS | flags , | ||
| const StringDecodingRef & | stringDecoding , | ||
| const Block < const Char > & | publicKey , | ||
| const ValueReceiver < const DataDictionary & > & | jsonObjects , | ||
| BaseArray < Char > * | originalToken | ||
| ) |
ConvertFromJWT converts a JWT token into a json DataDictionary. For more details of JWT see https://jwt.io/
| [in] | nameOrStream | JSON formated input stream or file url. |
| [in] | flags | See JWTPARSERFLAGS. |
| [in] | publicKey | RSA256 public key to verify the JWT token. |
| [in] | jsonObjects | ValueReceiver which receives all processed DataDictionaries. |
| [out] | originalToken |
[Optional] Returns the original token memory read from the stream.
|
| MAXON_METHOD Result <void> Read | ( | const Block < const Char > & | jwtString , |
| JWTPARSERFLAGS | flags , | ||
| const StringDecodingRef & | stringDecoding , | ||
| const Block < const Char > & | publicKey , | ||
| const ValueReceiver < const DataDictionary & > & | jsonObjects | ||
| ) |
| MAXON_METHOD Result < CString > Write | ( | const DataDictionary & | jsonObject , |
| const StringEncodingRef & | stringEncoding , | ||
| const Block < const Char > & | privateKey | ||
| ) |