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::MapOAuth2Code Class Reference

#include <map_oauth2.h>

Inheritance diagram for granada::http::oauth2::MapOAuth2Code:
granada::http::oauth2::OAuth2Code granada::http::oauth2::OAuth2Entity

Public Member Functions

 MapOAuth2Code ()
 MapOAuth2Code (const std::string &code)
cache () override
cryptograph () override
nonce_generator () override
- Public Member Functions inherited from granada::http::oauth2::OAuth2Code
 OAuth2Code ()
 OAuth2Code (const std::string &code)
virtual void Load () override
virtual void Load (const std::string &identifier) override
virtual void Create (const std::string &client_id, const std::string &roles, const std::string &username)
virtual void Delete ()
virtual const std::string GetCode ()
virtual void SetCode (const std::string &code)
virtual const std::string GetClientId ()
virtual const std::string GetUsername ()
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::OAuth2Code
virtual void LoadProperties ()
virtual const std::string hash () override
- Protected Attributes inherited from granada::http::oauth2::OAuth2Code
std::string code_
std::string client_id_
std::string username_
std::vector< std::string > roles_
std::time_t creation_time_
- Static Protected Attributes inherited from granada::http::oauth2::OAuth2Code
static std::mutex oauth2_code_creation_mtx_
static std::string cache_namespace_
static int code_length_

Constructor & Destructor Documentation

granada::http::oauth2::MapOAuth2Code::MapOAuth2Code ( )

Constructor Initialize nonce generator and load properties.

granada::http::oauth2::MapOAuth2Code::MapOAuth2Code ( const std::string &  code)

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

Member Function Documentation

virtual granada::cache::CacheHandler* granada::http::oauth2::MapOAuth2Code::cache ( )

Returns the used cache: where entities data is stored.

Cache where data is stored.

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

virtual granada::crypto::Cryptograph* granada::http::oauth2::MapOAuth2Code::cryptograph ( )

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

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

virtual granada::crypto::NonceGenerator* granada::http::oauth2::MapOAuth2Code::nonce_generator ( )

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: