pub struct JwkSet {
pub keys: Vec<JwkPublic>,
}Expand description
Models JWK Set. A JSON object that represents a set of JWKs.
If any of the JWKs in the JWK Set have parameter kid then all of them
should have kid parameter and different keys within the JWK Set SHOULD use
distinct kid values.
NOTE: The notion of different keys can be somewhat subtle. The RFC gives
the following example - different keys might use the same kid value if
they have different “kty” (key type) values but are considered to be
equivalent alternatives by the application using them. This implementation
currently does not support this example, uniqueness of keys is checked if
they contain kid values and equality between them is checked using only
kid values.
For more details see RFC7517.
Fields§
§keys: Vec<JwkPublic>Underlying representation of the JWK Set.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JwkSet
impl<'de> Deserialize<'de> for JwkSet
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for JwkSet
Auto Trait Implementations§
impl Freeze for JwkSet
impl RefUnwindSafe for JwkSet
impl Send for JwkSet
impl Sync for JwkSet
impl Unpin for JwkSet
impl UnwindSafe for JwkSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more