QtProtobuf  0.6
Protobuf plugin to generate Qt classes
Public Member Functions | List of all members
QtProtobuf::QGrpcUserPasswordCredentials< UserFieldName, PasswordFieldName > Class Template Referencefinal

The QGrpcUserPasswordCredentials class is reference implementation of simple user-password call authentication. More...

#include <qgrpcuserpasswordcredentials.h>

Inheritance diagram for QtProtobuf::QGrpcUserPasswordCredentials< UserFieldName, PasswordFieldName >:
Inheritance graph
[legend]
Collaboration diagram for QtProtobuf::QGrpcUserPasswordCredentials< UserFieldName, PasswordFieldName >:
Collaboration graph
[legend]

Public Member Functions

 QGrpcUserPasswordCredentials (const QString &userName, const QString &password)
 QGrpcUserPasswordCredentials constucts QGrpcUserPasswordCredentials. More...
 

Detailed Description

template<const char * UserFieldName = defaultUserFieldName, const char * PasswordFieldName = defaultPasswordFieldName>
class QtProtobuf::QGrpcUserPasswordCredentials< UserFieldName, PasswordFieldName >

The QGrpcUserPasswordCredentials class is reference implementation of simple user-password call authentication.

You may manually specify UserFieldName and PasswordFieldName in class template parameters to change header keys. Default values for:

constexpr char defaultUserFieldName[] = "user-name";
constexpr char defaultPasswordFieldName[] = "user-password";

Constructor & Destructor Documentation

◆ QGrpcUserPasswordCredentials()

template<const char * UserFieldName = defaultUserFieldName, const char * PasswordFieldName = defaultPasswordFieldName>
QtProtobuf::QGrpcUserPasswordCredentials< UserFieldName, PasswordFieldName >::QGrpcUserPasswordCredentials ( const QString &  userName,
const QString &  password 
)
inline

QGrpcUserPasswordCredentials constucts QGrpcUserPasswordCredentials.

Parameters
userNamevalue that will be assigned to UserFieldName header for each gRPC call
passwordvalue that will be assigned to PasswordFieldName header for each gRPC call

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