13 #ifndef __PROCESS_JWT_HPP__
14 #define __PROCESS_JWT_HPP__
25 namespace authentication {
89 const std::string& token,
90 const std::string& secret);
116 const std::string& secret);
128 std::ostream&
operator<<(std::ostream& stream,
const JWT& jwt);
134 #endif // __PROCESS_JWT_HPP__
JWTError(const std::string &message, Type _type)
Definition: jwt.hpp:37
const Header header
Definition: jwt.hpp:118
Definition: errorbase.hpp:35
A JSON Web Token (JWT) implementation.
Definition: jwt.hpp:55
const Option< std::string > signature
Definition: jwt.hpp:120
static Try< JWT, JWTError > create(const JSON::Object &payload)
Create an unsecured JWT.
const std::string message
Definition: errorbase.hpp:45
Result< Process > process(pid_t pid)
Definition: freebsd.hpp:30
static Try< JWT, JWTError > parse(const std::string &token)
Parse an unsecured JWT.
const Type type
Definition: jwt.hpp:38
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:32
Alg
Definition: jwt.hpp:58
std::ostream & operator<<(std::ostream &stream, const Principal &principal)
const JSON::Object payload
Definition: jwt.hpp:119