|
JWTXX
C++ library for JWT
|
All classes, functions and constants are here. More...
Namespaces | |
| namespace | Validate |
| Validation functions are here. | |
Classes | |
| class | Error |
| Base class for all exceptions in the library. More... | |
| class | JWT |
| Main class to work with JWT. More... | |
| class | Key |
| Represents signature algorithm Signs tokens and verifies token signatures. More... | |
| class | ValidationResult |
| Represents the result of validation. If validation is successfull an object of this class is equivalent to 'true' boolean value. Otherwise it is equivalent ot 'false' and contains an error message. More... | |
| class | Value |
| Represents a JSON value that can hold any JSON type. More... | |
Typedefs | |
| using | Validator = std::function<ValidationResult (const Value::Object&)> |
| Validation function for claims. | |
| using | Validators = std::vector<Validator> |
| A list of validators. | |
Enumerations | |
| enum class | Algorithm { HS256 , HS384 , HS512 , RS256 , RS384 , RS512 , ES256 , ES384 , ES512 , none } |
| JWT signature algorithms. More... | |
Functions | |
| std::ostream & | operator<< (std::ostream &stream, const Algorithm &alg) |
| Puts algorithm name to a stream. | |
| std::ostream & | operator<< (std::ostream &stream, const Value &v) |
| Outputs a Value to a stream. | |
| void | enableOpenSSLErrors () noexcept |
| Enable OpenSSL human-readable error messages. You only need to call it once, in the beginning of your program. | |
| std::string | algToString (Algorithm alg) noexcept |
| Converts algorithm code into a string representation. | |
| Algorithm | stringToAlg (const std::string &value) |
| Converts algorithm name into algorithm code. | |
All classes, functions and constants are here.
|
strong |
JWT signature algorithms.
|
noexcept |
Converts algorithm code into a string representation.
| alg | algorithm code. |
|
inline |
Puts algorithm name to a stream.
| stream | the stream; |
| alg | the algorithm. |
|
inline |