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

#include <redis_oauth2.h>

Inheritance diagram for granada::http::oauth2::RedisOAuth2User:
granada::http::oauth2::OAuth2User granada::http::oauth2::OAuth2Entity

Public Member Functions

 RedisOAuth2User ()
 
 RedisOAuth2User (const std::string &username)
 
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::OAuth2User
 OAuth2User ()
 
 OAuth2User (const std::string &username)
 
virtual void Load () override
 
virtual void Load (const std::string &identifier) override
 
virtual bool Create (const std::string &username, std::string &password, const web::json::value &roles)
 
virtual bool CorrectCredentials (std::string password)
 
virtual bool Delete (const std::string &password)
 
virtual const bool HasRole (const std::string &role)
 
virtual const std::string GetUsername ()
 
virtual void SetUsername (const std::string &username)
 
virtual web::json::value 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::OAuth2User
virtual void LoadProperties ()
 
virtual const std::string hash () override
 
- Protected Attributes inherited from granada::http::oauth2::OAuth2User
std::string username_
 
std::string key_
 
web::json::value roles_
 
std::time_t creation_time_
 
- Static Protected Attributes inherited from granada::http::oauth2::OAuth2User
static std::mutex oauth2_user_creation_mtx_
 
static std::string cache_namespace_
 

Constructor & Destructor Documentation

granada::http::oauth2::RedisOAuth2User::RedisOAuth2User ( )
inline

Constructor Initialize nonce generator and load properties.

granada::http::oauth2::RedisOAuth2User::RedisOAuth2User ( const std::string &  username)
inline

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

Member Function Documentation

virtual granada::cache::CacheHandler* granada::http::oauth2::RedisOAuth2User::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::RedisOAuth2User::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::RedisOAuth2User::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: