2015-10-31 11:37:15 -04:00
|
|
|
//! Create and parses JWT (JSON Web Tokens)
|
|
|
|
//!
|
2017-04-13 03:36:32 -04:00
|
|
|
//! Documentation: [stable](https://docs.rs/jsonwebtoken/)
|
2017-04-12 21:08:07 -04:00
|
|
|
#![deny(missing_docs)]
|
2017-02-22 02:45:28 -05:00
|
|
|
|
2019-06-16 11:51:43 -04:00
|
|
|
mod algorithms;
|
2019-11-14 13:43:43 -05:00
|
|
|
/// Lower level functions, if you want to do something other than JWTs
|
|
|
|
pub mod crypto;
|
2019-11-09 06:42:40 -05:00
|
|
|
mod decoding;
|
2019-12-29 12:42:35 -05:00
|
|
|
mod encoding;
|
2019-11-14 13:43:43 -05:00
|
|
|
/// All the errors that can be encountered while encoding/decoding JWTs
|
2015-10-31 11:37:15 -04:00
|
|
|
pub mod errors;
|
2017-01-09 00:50:51 -05:00
|
|
|
mod header;
|
2019-11-14 13:43:43 -05:00
|
|
|
mod pem;
|
2017-02-22 02:45:28 -05:00
|
|
|
mod serialization;
|
2017-04-11 01:41:44 -04:00
|
|
|
mod validation;
|
2016-04-02 06:41:35 -04:00
|
|
|
|
2019-06-16 11:51:43 -04:00
|
|
|
pub use algorithms::Algorithm;
|
2019-11-14 13:43:43 -05:00
|
|
|
pub use decoding::{
|
|
|
|
dangerous_unsafe_decode, decode, decode_header, decode_rsa_components, TokenData,
|
|
|
|
};
|
2019-12-29 12:42:35 -05:00
|
|
|
pub use encoding::{encode, EncodingKey};
|
2017-08-25 04:48:53 -04:00
|
|
|
pub use header::Header;
|
2018-10-28 14:58:35 -04:00
|
|
|
pub use validation::Validation;
|