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

QAbstractGrpcCredentials Class

The QAbstractGrpcClient is an abstract storage class used by authentication parameters.

This class was introduced in Qt 6.5.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QAbstractGrpcCredentials Class

  • Header: QAbstractGrpcCredentials

  • Since: Qt 6.5

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Grpc)

    target_link_libraries(mytarget PRIVATE Qt6::Grpc)

  • Inherited By: QGrpcCredentials

I. Detailed Description

QAbstractGrpcCredentials provides a set of functions to access the call and the channel credentials that are used by gRPC channels to communicate with the services.

You may implement this interface to create your own authentication provider class, but we recommend using the QGrpcCredentials with QGrpcUserPasswordCredentials and QGrpcSslCredentials.

II. Member Function Documentation

 

II-1. [pure virtual] QGrpcCredentialMap QAbstractGrpcCredentials::callCredentials() const

This pure virtual function returns a key-value map of the credentials for RPC calls.

This function is called to obtain the QGrpcCredentialMap for the call.

II-2. [pure virtual] QGrpcCredentialMap QAbstractGrpcCredentials::channelCredentials() const

This pure virtual function shall return a key-value map of session parameters for the specific channel.

This function is called to obtain the QGrpcCredentialMap for the channel.

III. Related Non-Members

 

III-1. [alias] QGrpcCredentialMap

Alias for QMap<QByteArray, QVariant>. This is the key-value map of credentials, such as user-password credentials or session parameters.

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