QAbstractGrpcCredentials Class

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

Header: #include <QAbstractGrpcCredentials>
CMake: find_package(Qt6 REQUIRED COMPONENTS Grpc)
target_link_libraries(mytarget PRIVATE Qt6::Grpc)
Since: Qt 6.5
Inherited By:

QGrpcCredentials

Public Functions

virtual QGrpcCredentialMap callCredentials() const = 0
virtual QGrpcCredentialMap channelCredentials() const = 0

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.

Member Function Documentation

[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.

[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.

Related Non-Members

[alias] QGrpcCredentialMap

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

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.