QGrpcCallCredentials Class
The QGrpcCallCredentials is the base class for gRPC call credentials. More...
Header: | #include <QGrpcCallCredentials> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Grpc) target_link_libraries(mytarget PRIVATE Qt6::Grpc) |
Since: | Qt 6.5 |
Inherited By: | QGrpcInsecureCallCredentials and QGrpcUserPasswordCredentials |
Public Functions
virtual QGrpcCredentialMap | operator()() const = 0 |
Detailed Description
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.
Member Function Documentation
[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.