IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QGrpcUserPasswordCredentials Class

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

This class was introduced in Qt 6.5.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QGrpcUserPasswordCredentials Class

  • Header: QGrpcUserPasswordCredentials

  • Since: Qt 6.5

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Grpc)

    target_link_libraries(mytarget PRIVATE Qt6::Grpc)

  • Inherits: QGrpcCallCredentials

I. Detailed Description

 

II. Member Function Documentation

 

II-1. [explicit] QGrpcUserPasswordCredentials::QGrpcUserPasswordCredentials(const QString &userName, const QString &password)

QGrpcUserPasswordCredentials constructs QGrpcUserPasswordCredentials with userName and password with default UserFieldName and PasswordFieldName header keys. The userNameField defaults to "user-name", the passwordField defaults to "user-password".

II-2. [explicit] QGrpcUserPasswordCredentials::QGrpcUserPasswordCredentials(const QByteArray &userNameField, const QString &userName, const QByteArray &passwordField, const QString &password)

QGrpcUserPasswordCredentials constructs QGrpcUserPasswordCredentials with userName and password credentials with manually specified userNameField and passwordField header keys.

II-3. [override virtual] QGrpcUserPasswordCredentials::~QGrpcUserPasswordCredentials()

Destroys the QGrpcUserPasswordCredentials object.

II-4. [override virtual] QGrpcCredentialMap QGrpcUserPasswordCredentials::operator()() const

Reimplements: QGrpcCallCredentials::operator()() const.

Returns the stored credentials map.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+