File indexing completed on 2024-11-24 04:44:41
0001 /* 0002 * SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org> 0003 * SPDX-License-Identifier: LGPL-2.0-or-later 0004 */ 0005 0006 #ifndef JWKLOADER_P_H 0007 #define JWKLOADER_P_H 0008 0009 #include "openssl/opensslpp_p.h" 0010 0011 class QJsonObject; 0012 class QString; 0013 0014 /** Load JSON Web Keys for use with OpenSSL. */ 0015 class JwkLoader 0016 { 0017 public: 0018 static openssl::evp_pkey_ptr loadPublicKey(const QString &fileName); 0019 static openssl::evp_pkey_ptr loadPublicKey(const QJsonObject &keyObj); 0020 }; 0021 0022 #endif // JWKLOADER_P_H