Goby3  3.1.5a
2024.05.23
jwt::algorithm::rs384 Struct Reference

#include <goby/util/thirdparty/jwt-cpp/jwt.h>

Inheritance diagram for jwt::algorithm::rs384:
jwt::algorithm::rsa

Public Member Functions

 rs384 (const std::string &public_key, const std::string &private_key="", const std::string &public_key_password="", const std::string &private_key_password="")
 
- Public Member Functions inherited from jwt::algorithm::rsa
 rsa (const std::string &public_key, const std::string &private_key, const std::string &public_key_password, const std::string &private_key_password, const EVP_MD *(*md)(), std::string name)
 
std::string sign (const std::string &data, std::error_code &ec) const
 
void verify (const std::string &data, const std::string &signature, std::error_code &ec) const
 
std::string name () const
 

Detailed Description

RS384 algorithm

Definition at line 1820 of file jwt.h.

Constructor & Destructor Documentation

◆ rs384()

jwt::algorithm::rs384::rs384 ( const std::string &  public_key,
const std::string &  private_key = "",
const std::string &  public_key_password = "",
const std::string &  private_key_password = "" 
)
inlineexplicit

Construct new instance of algorithm

Parameters
public_keyRSA public key in PEM format
private_keyRSA private key or empty string if not available. If empty, signing will always fail.
public_key_passwordPassword to decrypt public key pem.
private_key_passwordPassword to decrypt private key pem.

Definition at line 1829 of file jwt.h.


The documentation for this struct was generated from the following file: