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.