Granada  1.54.0
Structured layer on top of C++ REST SDK for building server applications in C++. Granada implements sessions, server side plug-in framework, C++ OAuth 2.0 server, data storage access, server script running, server browsing.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
granada::http::oauth2::MapOAuth2Client Class Reference

#include <map_oauth2.h>

Inheritance diagram for granada::http::oauth2::MapOAuth2Client:
granada::http::oauth2::OAuth2Client granada::http::oauth2::OAuth2Entity

Public Member Functions

 MapOAuth2Client ()
 
 MapOAuth2Client (const std::string &id)
 
virtual
granada::cache::CacheHandler
cache () override
 
virtual
granada::crypto::Cryptograph
cryptograph () override
 
virtual
granada::crypto::NonceGenerator
nonce_generator () override
 
- Public Member Functions inherited from granada::http::oauth2::OAuth2Client
 OAuth2Client ()
 
 OAuth2Client (const std::string &id)
 
virtual void Load () override
 
virtual void Load (const std::string &identifier) override
 
virtual void Create (const std::string &type, const std::vector< std::string > &redirect_uris, const std::string &application_name, const std::vector< std::string > &roles, std::string &secret)
 
virtual bool CorrectCredentials (std::string secret)
 
virtual bool Delete (const std::string &secret)
 
virtual const bool HasRedirectURI (const std::string &redirect_uri)
 
virtual const bool HasRole (const std::string &role)
 
virtual const std::string GetId ()
 
virtual void SetId (const std::string &id)
 
virtual const std::string GetType ()
 
virtual const std::string GetApplicationName ()
 
virtual const std::vector
< std::string > 
GetRedirectURIs ()
 
virtual const std::vector
< std::string > 
GetRoles ()
 
virtual const std::time_t GetCreationTime ()
 
- Public Member Functions inherited from granada::http::oauth2::OAuth2Entity
virtual const bool Exists ()
 

Additional Inherited Members

- Protected Member Functions inherited from granada::http::oauth2::OAuth2Client
virtual void LoadProperties ()
 
virtual const std::string hash () override
 
- Protected Attributes inherited from granada::http::oauth2::OAuth2Client
std::string id_
 
std::string key_
 
std::string type_
 
std::string application_name_
 
std::vector< std::string > redirect_uris_
 
std::vector< std::string > roles_
 
std::time_t creation_time_
 
- Static Protected Attributes inherited from granada::http::oauth2::OAuth2Client
static std::mutex oauth2_client_creation_mtx_
 
static std::string cache_namespace_
 
static int client_id_length_
 

Constructor & Destructor Documentation

granada::http::oauth2::MapOAuth2Client::MapOAuth2Client ( )
inline

Constructor Initialize nonce generator and load properties.

granada::http::oauth2::MapOAuth2Client::MapOAuth2Client ( const std::string &  id)
inline

Constructor Initialize nonce generator, load properties and load client with the given id.

Member Function Documentation

virtual granada::cache::CacheHandler* granada::http::oauth2::MapOAuth2Client::cache ( )
inlineoverridevirtual

Returns the used cache: where entities data is stored.

Returns
Cache where data is stored.

Reimplemented from granada::http::oauth2::OAuth2Entity.

virtual granada::crypto::Cryptograph* granada::http::oauth2::MapOAuth2Client::cryptograph ( )
inlineoverridevirtual

Returns the cryptograph used to encrypt and decrypt data. return Cryptograph.

Reimplemented from granada::http::oauth2::OAuth2Entity.

virtual granada::crypto::NonceGenerator* granada::http::oauth2::MapOAuth2Client::nonce_generator ( )
inlineoverridevirtual

Returns the nonce generator used to generate alphanumeric keys. return Nonce generator.

Reimplemented from granada::http::oauth2::OAuth2Entity.


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