1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
//! # EVE Online OAuth2 JWT Key Models
//!
//! Provides the [`EveJwtKeys`] struct & [`EveJwtKey`] enum to represent the JWT keys
//! used to validate tokens returned from EVE Online's OAuth2 API.
//!
//! For usage of OAuth2 in the `eve_esi` crate, please see the [`crate::oauth2`]
//! module documentation.
//!
//! ## EVE Online OAuth2 Documentation
//! - <https://developers.eveonline.com/docs/services/sso/>
//!
//! ## Models:
//! - [`EveJwtKeys`]: Represents the EVE Online JSON Web Token (JWT) keys used for validating authentication tokens
//! - [`EveJwtKey`]: Represents the types of EVE Online JSON Web Token (JWT) keys used for token validation
use ;
/// Represents the EVE Online JSON Web Token (JWT) keys used for validating authentication tokens
///
/// This struct contains a collection of JWT keys provided by EVE Online's SSO service,
/// used for verifying the authenticity of access tokens.
///
/// # Documentation
/// See [EVE SSO documentation](https://developers.eveonline.com/docs/services/sso/)
/// for details about JWT verification.
///
/// # Fields
/// - `skip_unresolved_json_web_keys`: Flag to determine whether to skip unresolved JWT keys
/// - `keys`: A collection of EVE Online JWT keys used for token validation
/// Represents the types of EVE Online JSON Web Token (JWT) keys used for token validation
///
/// This enum represents different types of cryptographic keys used by EVE Online's SSO service
/// for signing JWTs. It supports both RSA (RS256) and Elliptic Curve (ES256) algorithms.
///
/// # Documentation
/// See [EVE SSO documentation](https://developers.eveonline.com/docs/services/sso/)
/// for details about JWT verification and key formats.
///
/// # Variants
/// - `RS256`: RSA SHA-256 signature algorithm key parameters
/// - `ES256`: Elliptic Curve P-256 signature algorithm key parameters