// Copyright (C) 2022 The Qt Company Ltd. // Copyright (C) 2019 Alexey Edelev // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #ifndef QGRPCUSERPASSWORDCREDENTIALS_H #define QGRPCUSERPASSWORDCREDENTIALS_H #include #include QT_BEGIN_NAMESPACE class Q_GRPC_EXPORT QGrpcUserPasswordCredentials final : public QGrpcCallCredentials { public: explicit QGrpcUserPasswordCredentials(const QString &userName, const QString &password); explicit QGrpcUserPasswordCredentials(const QByteArray &userNameField, const QString &userName, const QByteArray &passwordField, const QString &password); ~QGrpcUserPasswordCredentials() override; QGrpcCredentialMap operator()() const override; private: QGrpcUserPasswordCredentials(); QGrpcCredentialMap m_map; }; QT_END_NAMESPACE #endif // QGRPCUSERPASSWORDCREDENTIALS_H