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 | Protected Member Functions | List of all members
granada::http::oauth2::OAuth2Entity Class Reference

#include <oauth2.h>

Inheritance diagram for granada::http::oauth2::OAuth2Entity:
granada::http::oauth2::OAuth2Authorization granada::http::oauth2::OAuth2Client granada::http::oauth2::OAuth2Code granada::http::oauth2::OAuth2User granada::http::oauth2::MapOAuth2Authorization granada::http::oauth2::RedisOAuth2Authorization granada::http::oauth2::MapOAuth2Client granada::http::oauth2::RedisOAuth2Client granada::http::oauth2::MapOAuth2Code granada::http::oauth2::RedisOAuth2Code granada::http::oauth2::MapOAuth2User granada::http::oauth2::RedisOAuth2User

Public Member Functions

virtual
granada::cache::CacheHandler
cache ()
 
virtual
granada::crypto::Cryptograph
cryptograph ()
 
virtual
granada::crypto::NonceGenerator
nonce_generator ()
 
virtual const bool Exists ()
 
virtual void Load ()
 
virtual void Load (const std::string &identifier)
 

Protected Member Functions

virtual const std::string hash ()
 
virtual void LoadProperties ()
 

Detailed Description

Abstract class of the OAuth 2.0 entities.

Member Function Documentation

virtual granada::cache::CacheHandler* granada::http::oauth2::OAuth2Entity::cache ( )
inlinevirtual
virtual granada::crypto::Cryptograph* granada::http::oauth2::OAuth2Entity::cryptograph ( )
inlinevirtual
virtual const bool granada::http::oauth2::OAuth2Entity::Exists ( )
inlinevirtual

Returns true if OAuth 2.0 entity exists wherever it is stored.

Returns
True if OAuth 2.0 entity exists false if it does not.
virtual const std::string granada::http::oauth2::OAuth2Entity::hash ( )
inlineprotectedvirtual

Returns the key of the data : that is the namespace and the identifier

Returns
Key of the entity values.

Reimplemented in granada::http::oauth2::OAuth2Authorization, granada::http::oauth2::OAuth2Code, granada::http::oauth2::OAuth2User, and granada::http::oauth2::OAuth2Client.

virtual void granada::http::oauth2::OAuth2Entity::Load ( )
inlinevirtual

Loads the data of the OAuth 2.0 entity with the existant entity identifier.

Reimplemented in granada::http::oauth2::OAuth2Code, granada::http::oauth2::OAuth2User, and granada::http::oauth2::OAuth2Client.

virtual void granada::http::oauth2::OAuth2Entity::Load ( const std::string &  identifier)
inlinevirtual

Loads the data of the OAuth 2.0 entity into the variables of the class with given identifier.

Parameters
identifierIdentifier of the OAuth 2.0 client, user or code.

Reimplemented in granada::http::oauth2::OAuth2Code, granada::http::oauth2::OAuth2User, and granada::http::oauth2::OAuth2Client.

virtual void granada::http::oauth2::OAuth2Entity::LoadProperties ( )
inlineprotectedvirtual

Loads properties given in the configuration file, if properties are not found, then default values included in granada/defaults.dat file are used.

Reimplemented in granada::http::oauth2::OAuth2Authorization, granada::http::oauth2::OAuth2Code, granada::http::oauth2::OAuth2User, and granada::http::oauth2::OAuth2Client.

virtual granada::crypto::NonceGenerator* granada::http::oauth2::OAuth2Entity::nonce_generator ( )
inlinevirtual

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