13 #ifndef __PROCESS_JWT_HPP__ 14 #define __PROCESS_JWT_HPP__ 25 #include <openssl/rsa.h> 33 namespace authentication {
98 const std::string& token,
99 const std::string& secret);
111 const std::string& token,
112 std::shared_ptr<RSA> publicKey);
138 const std::string& secret);
154 std::shared_ptr<RSA> privateKey);
166 std::ostream&
operator<<(std::ostream& stream,
const JWT& jwt);
172 #endif // __PROCESS_JWT_HPP__ JWTError(const std::string &message, Type _type)
Definition: jwt.hpp:45
const Header header
Definition: jwt.hpp:156
Definition: errorbase.hpp:36
A JSON Web Token (JWT) implementation.
Definition: jwt.hpp:63
const Option< std::string > signature
Definition: jwt.hpp:158
Try< ImageManifest > parse(const std::string &value)
Definition: parse.hpp:36
const std::string message
Definition: errorbase.hpp:46
Definition: executor.hpp:48
const Type type
Definition: jwt.hpp:46
Try< Nothing > create(const std::string &hierarchy, const std::string &cgroup, bool recursive=false)
URI http(const std::string &host, const std::string &path="/", const Option< int > &port=None(), const Option< std::string > &query=None(), const Option< std::string > &fragment=None(), const Option< std::string > &user=None(), const Option< std::string > &password=None())
Creates an http URI with the given parameters.
Definition: http.hpp:35
Type
Definition: jwt.hpp:40
Alg
Definition: jwt.hpp:66
std::ostream & operator<<(std::ostream &stream, const Principal &principal)
const JSON::Object payload
Definition: jwt.hpp:157