Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::crypto::webauthn::detail::webauthn_json_handler Struct Reference
Inheritance diagram for fc::crypto::webauthn::detail::webauthn_json_handler:
Collaboration diagram for fc::crypto::webauthn::detail::webauthn_json_handler:

Public Types

enum  parse_stat_t {
  EXPECT_FIRST_OBJECT_START , EXPECT_FIRST_OBJECT_KEY , EXPECT_FIRST_OBJECT_DONTCARE_VALUE , EXPECT_CHALLENGE_VALUE ,
  EXPECT_ORIGIN_VALUE , EXPECT_TYPE_VALUE , IN_NESTED_CONTAINER
}
 

Public Member Functions

bool basic_stuff ()
 
bool Null ()
 
bool Bool (bool)
 
bool Int (int)
 
bool Uint (unsigned)
 
bool Int64 (int64_t)
 
bool Uint64 (uint64_t)
 
bool Double (double)
 
bool String (const char *str, rapidjson::SizeType length, bool copy)
 
bool StartObject ()
 
bool Key (const char *str, rapidjson::SizeType length, bool copy)
 
bool EndObject (rapidjson::SizeType memberCount)
 
bool StartArray ()
 
bool EndArray (rapidjson::SizeType elementCount)
 

Public Attributes

std::string found_challenge
 
std::string found_origin
 
std::string found_type
 
enum fc::crypto::webauthn::detail::webauthn_json_handler::parse_stat_t current_state = EXPECT_FIRST_OBJECT_START
 
unsigned current_nested_container_depth = 0
 

Detailed Description

Definition at line 21 of file elliptic_webauthn.cpp.

Member Enumeration Documentation

◆ parse_stat_t

Enumerator
EXPECT_FIRST_OBJECT_START 
EXPECT_FIRST_OBJECT_KEY 
EXPECT_FIRST_OBJECT_DONTCARE_VALUE 
EXPECT_CHALLENGE_VALUE 
EXPECT_ORIGIN_VALUE 
EXPECT_TYPE_VALUE 
IN_NESTED_CONTAINER 

Definition at line 26 of file elliptic_webauthn.cpp.

Member Function Documentation

◆ basic_stuff()

bool fc::crypto::webauthn::detail::webauthn_json_handler::basic_stuff ( )
inline

Definition at line 37 of file elliptic_webauthn.cpp.

37 {
39 return true;
42 return true;
43 }
44 return false;
45 }
Here is the caller graph for this function:

◆ Bool()

bool fc::crypto::webauthn::detail::webauthn_json_handler::Bool ( bool )
inline

Definition at line 50 of file elliptic_webauthn.cpp.

Here is the call graph for this function:

◆ Double()

bool fc::crypto::webauthn::detail::webauthn_json_handler::Double ( double )
inline

Definition at line 65 of file elliptic_webauthn.cpp.

65 {
66 return basic_stuff();
67 }
Here is the call graph for this function:

◆ EndArray()

bool fc::crypto::webauthn::detail::webauthn_json_handler::EndArray ( rapidjson::SizeType elementCount)
inline

Definition at line 170 of file elliptic_webauthn.cpp.

◆ EndObject()

bool fc::crypto::webauthn::detail::webauthn_json_handler::EndObject ( rapidjson::SizeType memberCount)
inline

Definition at line 136 of file elliptic_webauthn.cpp.

136 {
137 switch(current_state) {
143 return false;
147 return true;
149 return true;
150 }
151 }

◆ Int()

bool fc::crypto::webauthn::detail::webauthn_json_handler::Int ( int )
inline

Definition at line 53 of file elliptic_webauthn.cpp.

53 {
54 return basic_stuff();
55 }
Here is the call graph for this function:

◆ Int64()

bool fc::crypto::webauthn::detail::webauthn_json_handler::Int64 ( int64_t )
inline

Definition at line 59 of file elliptic_webauthn.cpp.

59 {
60 return basic_stuff();
61 }
Here is the call graph for this function:

◆ Key()

bool fc::crypto::webauthn::detail::webauthn_json_handler::Key ( const char * str,
rapidjson::SizeType length,
bool copy )
inline

Definition at line 113 of file elliptic_webauthn.cpp.

113 {
114 switch(current_state) {
120 return false;
122 if("challenge"s == str)
124 else if("origin"s == str)
126 else if("type"s == str)
128 else
130 return true;
131 }
133 return true;
134 }
135 }
char * s

◆ Null()

bool fc::crypto::webauthn::detail::webauthn_json_handler::Null ( )
inline

Definition at line 47 of file elliptic_webauthn.cpp.

47 {
48 return basic_stuff();
49 }
Here is the call graph for this function:

◆ StartArray()

bool fc::crypto::webauthn::detail::webauthn_json_handler::StartArray ( )
inline

Definition at line 153 of file elliptic_webauthn.cpp.

153 {
154 switch(current_state) {
158 return true;
161 return true;
167 return false;
168 }
169 }

◆ StartObject()

bool fc::crypto::webauthn::detail::webauthn_json_handler::StartObject ( )
inline

Definition at line 94 of file elliptic_webauthn.cpp.

94 {
95 switch(current_state) {
98 return true;
102 return true;
105 return true;
110 return false;
111 }
112 }

◆ String()

bool fc::crypto::webauthn::detail::webauthn_json_handler::String ( const char * str,
rapidjson::SizeType length,
bool copy )
inline

Definition at line 69 of file elliptic_webauthn.cpp.

69 {
70 switch(current_state) {
73 return false;
75 found_challenge = std::string(str, length);
77 return true;
79 found_origin = std::string(str, length);
81 return true;
83 found_type = std::string(str, length);
85 return true;
88 return true;
90 return true;
91 }
92 }

◆ Uint()

bool fc::crypto::webauthn::detail::webauthn_json_handler::Uint ( unsigned )
inline

Definition at line 56 of file elliptic_webauthn.cpp.

56 {
57 return basic_stuff();
58 }
Here is the call graph for this function:

◆ Uint64()

bool fc::crypto::webauthn::detail::webauthn_json_handler::Uint64 ( uint64_t )
inline

Definition at line 62 of file elliptic_webauthn.cpp.

62 {
63 return basic_stuff();
64 }
Here is the call graph for this function:

Member Data Documentation

◆ current_nested_container_depth

unsigned fc::crypto::webauthn::detail::webauthn_json_handler::current_nested_container_depth = 0

Definition at line 35 of file elliptic_webauthn.cpp.

◆ current_state

enum fc::crypto::webauthn::detail::webauthn_json_handler::parse_stat_t fc::crypto::webauthn::detail::webauthn_json_handler::current_state = EXPECT_FIRST_OBJECT_START

◆ found_challenge

std::string fc::crypto::webauthn::detail::webauthn_json_handler::found_challenge

Definition at line 22 of file elliptic_webauthn.cpp.

◆ found_origin

std::string fc::crypto::webauthn::detail::webauthn_json_handler::found_origin

Definition at line 23 of file elliptic_webauthn.cpp.

◆ found_type

std::string fc::crypto::webauthn::detail::webauthn_json_handler::found_type

Definition at line 24 of file elliptic_webauthn.cpp.


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