QGrpcCallCredentials Class

The QGrpcCallCredentials is the base class for gRPC call credentials. 更多...

头: #include <QGrpcCallCredentials>
CMake: find_package(Qt6 REQUIRED COMPONENTS Grpc)
target_link_libraries(mytarget PRIVATE Qt6::Grpc)
Since: Qt 6.5
继承者: QGrpcInsecureCallCredentials and QGrpcUserPasswordCredentials

公共函数

virtual QGrpcCredentialMap operator() () const = 0

详细描述

You may inherrit this class to create your own credentials implementation, that will be used for each method call. Classes inheriting from QGrpcCallCredentials must reimplement QGrpcCredentialMap operator() and return a credentials map for the call.

成员函数文档编制

[pure virtual] QGrpcCredentialMap QGrpcCallCredentials:: operator() () const

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

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