Heart 1.3.842.34c2ab5
Heart is base back end library for your c++ Qt projects.
QH::IToken Class Referenceabstract

The IToken classes interface for the validation user packages and user dates. More...

#include <itoken.h>

Inheritance diagram for QH::IToken:
Inheritance graph
Collaboration diagram for QH::IToken:
Collaboration graph

Public Member Functions

 IToken ()=default
 
virtual ~IToken ()=default
 
virtual const AccessTokengetSignToken () const =0
 getSignToken This method should be return actually token of the user.
 
virtual void setSignToken (const AccessToken &token)=0
 setSignToken This method sets a new token for object.
 

Detailed Description

The IToken classes interface for the validation user packages and user dates.

This is simple interface for validation packages.

Example of use:

class MyPackageClass: public IToken
{
...
const AccessToken& getSignToken() const override;
...
}
The AccessToken class contains information duration of the access. Token are byte array for validatio...
Definition accesstoken.h:25
The IToken classes interface for the validation user packages and user dates.
Definition itoken.h:36
Warning
This is not sign of object. This is just secret token value for validation. This validation method not guaranteed that package save own structure when received to server. If the traffic is not encrypted, a third party can spoof the packet values

Definition at line 35 of file itoken.h.

Constructor & Destructor Documentation

◆ IToken()

QH::IToken::IToken ( )
default

◆ ~IToken()

virtual QH::IToken::~IToken ( )
virtualdefault

Member Function Documentation

◆ getSignToken()

virtual const AccessToken & QH::IToken::getSignToken ( ) const
pure virtual

getSignToken This method should be return actually token of the user.

Returns
actually access token.

Implemented in QH::PKG::DeleteObject.

◆ setSignToken()

virtual void QH::IToken::setSignToken ( const AccessToken token)
pure virtual

setSignToken This method sets a new token for object.

Parameters
tokenThis is new token value.

Implemented in QH::PKG::DeleteObject.


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