10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::se::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, const std::shared_ptr< const ::tenduke::crypto::KeyFactory > &parsePublicKey)
 Constructs new instance.
 
::tenduke::se::ClientState from (const std::string &stateSerializedAsJSON) const
 Deserializes the state from JSON.
 

Protected Member Functions

std::shared_ptr<::tenduke::jwk::JWKSdeserializeLicenseTokenValidationKeys (const ::tenduke::json::JSONObject *keys) const
 Deserializes license token validation keys.
 
std::shared_ptr<::tenduke::se::licensing::MutableLeasesdeserializeLeases (const ::tenduke::json::JSONArray *leases, const std::shared_ptr<::tenduke::jwk::JWKS > &jwks) const
 Deserializes leases.
 
std::shared_ptr<::tenduke::oidc::OIDCConfigurationdeserializeOIDCConfiguration (const ::tenduke::json::JSONObject *oidcCfg) const
 Deserializes OIDC configuration.
 
std::shared_ptr<::tenduke::oidc::OIDCStatedeserializeOIDCState (const ::tenduke::json::JSONObject *oidcSession, const std::shared_ptr< const ::tenduke::oidc::OIDCConfiguration > &oidcConfiguration) const
 Deserializes OIDC state.
 
std::shared_ptr<::tenduke::oauth::OAuthConfigurationdeserializeOAuthConfiguration (const ::tenduke::json::JSONObject *oauthCfg) const
 Deserializes OAuth-configruration.
 

Constructor & Destructor Documentation

◆ DeserializeStateFromJSON()

tenduke::se::DeserializeStateFromJSON::DeserializeStateFromJSON ( const std::shared_ptr< const ::tenduke::jwt::JWTParserFactory > &  newJwtParser,
const std::shared_ptr< const ::tenduke::json::JSONParser > &  parseJson,
const std::shared_ptr< const ::tenduke::crypto::KeyFactory > &  parsePublicKey 
)

Constructs new instance.

Parameters
newJwtParser-
parseJson-
parsePublicKey-

Member Function Documentation

◆ deserializeLeases()

std::shared_ptr<::MutableLeases > tenduke::se::DeserializeStateFromJSON::deserializeLeases ( const ::tenduke::json::JSONArray leases,
const std::shared_ptr<::tenduke::jwk::JWKS > &  jwks 
) const
protected

Deserializes leases.

Parameters
leases-
jwkslicense token validation keys
Returns
-

◆ deserializeLicenseTokenValidationKeys()

std::shared_ptr<::JWKS > tenduke::se::DeserializeStateFromJSON::deserializeLicenseTokenValidationKeys ( const ::tenduke::json::JSONObject keys) const
protected

Deserializes license token validation keys.

Parameters
keys-
Returns
-

◆ deserializeOAuthConfiguration()

std::shared_ptr<::OAuthConfiguration > tenduke::se::DeserializeStateFromJSON::deserializeOAuthConfiguration ( const ::tenduke::json::JSONObject oauthCfg) const
protected

Deserializes OAuth-configruration.

Parameters
oauthCfg-
Returns
-

◆ deserializeOIDCConfiguration()

std::shared_ptr<::OIDCConfiguration > tenduke::se::DeserializeStateFromJSON::deserializeOIDCConfiguration ( const ::tenduke::json::JSONObject oidcCfg) const
protected

Deserializes OIDC configuration.

Parameters
oidcCfg-
Returns
-

◆ deserializeOIDCState()

std::shared_ptr<::OIDCState > tenduke::se::DeserializeStateFromJSON::deserializeOIDCState ( const ::tenduke::json::JSONObject oidcSession,
const std::shared_ptr< const ::tenduke::oidc::OIDCConfiguration > &  oidcConfiguration 
) const
protected

Deserializes OIDC state.

Parameters
oidcSession-
oidcConfiguration-
Returns
-

◆ from()

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

Deserializes the state from JSON.

Parameters
stateSerializedAsJSON-
Returns
-

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