10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
tenduke::ee::DeserializeStateFromJSON Class Reference

#include <DeserializeStateFromJSON.h>

Detailed Description

Service for deserializing client state from JSON.

Used when bootstrapping the client.

Public Member Functions

 DeserializeStateFromJSON (const std::shared_ptr< const ::tenduke::jwt::JWTParserFactory > &newJWTParser, const std::shared_ptr< const ::tenduke::json::JSONParser > &parseJSON)
 Constructs new instance.
 
::tenduke::ee::ClientState from (const std::string &stateSerializedAsJSON) const
 Deserializes the state from JSON.
 

Protected Member Functions

::tenduke::ee::ClientState parseState (const ::tenduke::json::JSONObject *document) const
 Parses the state from JSON object.
 
::std::shared_ptr<::tenduke::oidc::OIDCStatedeserializeOIDCState (const ::tenduke::json::JSONObject *oidcSession) const
 Parses OIDC-state from the state.
 

Constructor & Destructor Documentation

◆ DeserializeStateFromJSON()

tenduke::ee::DeserializeStateFromJSON::DeserializeStateFromJSON ( const std::shared_ptr< const ::tenduke::jwt::JWTParserFactory > &  newJWTParser,
const std::shared_ptr< const ::tenduke::json::JSONParser > &  parseJSON 
)

Constructs new instance.

Parameters
newJWTParser-
parseJSON-

Member Function Documentation

◆ deserializeOIDCState()

std::shared_ptr<::OIDCState > tenduke::ee::DeserializeStateFromJSON::deserializeOIDCState ( const ::tenduke::json::JSONObject oidcSession) const
protected

Parses OIDC-state from the state.

Parameters
oidcSession-
Returns
-

◆ from()

ClientState tenduke::ee::DeserializeStateFromJSON::from ( const std::string &  stateSerializedAsJSON) const

Deserializes the state from JSON.

Parameters
stateSerializedAsJSON-
Returns
-

◆ parseState()

ClientState tenduke::ee::DeserializeStateFromJSON::parseState ( const ::tenduke::json::JSONObject document) const
protected

Parses the state from JSON object.

Parameters
document-
Returns
-

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