QGrpcUserPasswordCredentials Class
The QGrpcUserPasswordCredentials class is a reference implementation of simple user-password call authentication. More...
Header: | #include <QGrpcUserPasswordCredentials> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Grpc) target_link_libraries(mytarget PRIVATE Qt6::Grpc) |
Since: | Qt 6.5 |
Inherits: | QGrpcCallCredentials |
Public Functions
QGrpcUserPasswordCredentials(const QString &userName, const QString &password) | |
QGrpcUserPasswordCredentials(const QByteArray &userNameField, const QString &userName, const QByteArray &passwordField, const QString &password) | |
virtual | ~QGrpcUserPasswordCredentials() override |
Reimplemented Public Functions
virtual QGrpcCredentialMap | operator()() const override |
Member Function Documentation
[explicit]
QGrpcUserPasswordCredentials::QGrpcUserPasswordCredentials(const QString &userName, const QString &password)
QGrpcUserPasswordCredentials constructs QGrpcUserPasswordCredentials with userName and password with default UserFieldName and PasswordFieldName header keys. The userNameField
defaults to "user-name"
, the passwordField
defaults to "user-password"
.
[explicit]
QGrpcUserPasswordCredentials::QGrpcUserPasswordCredentials(const QByteArray &userNameField, const QString &userName, const QByteArray &passwordField, const QString &password)
QGrpcUserPasswordCredentials constructs QGrpcUserPasswordCredentials with userName and password credentials with manually specified userNameField and passwordField header keys.
[override virtual]
QGrpcUserPasswordCredentials::~QGrpcUserPasswordCredentials()
Destroys the QGrpcUserPasswordCredentials object.
[override virtual]
QGrpcCredentialMap QGrpcUserPasswordCredentials::operator()() const
Reimplements: QGrpcCallCredentials::operator()() const.
Returns the stored credentials map.
© 2023 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.