Type Alias mas_oidc_client::jose::jwk::PrivateJsonWebKeySet
source · pub type PrivateJsonWebKeySet = JsonWebKeySet<JsonWebKeyPrivateParameters>;
Aliased Type§
struct PrivateJsonWebKeySet { /* private fields */ }
Implementations
source§impl<P> JsonWebKeySet<P>
impl<P> JsonWebKeySet<P>
pub fn new(keys: Vec<JsonWebKey<P>>) -> JsonWebKeySet<P>
sourcepub fn find_key(
&self,
constraints: &ConstraintSet<'_>,
) -> Option<&JsonWebKey<P>>where
P: ParametersInfo,
pub fn find_key(
&self,
constraints: &ConstraintSet<'_>,
) -> Option<&JsonWebKey<P>>where
P: ParametersInfo,
Find the best key given the constraints
sourcepub fn find_keys(&self, constraints: &ConstraintSet<'_>) -> Vec<&JsonWebKey<P>>where
P: ParametersInfo,
pub fn find_keys(&self, constraints: &ConstraintSet<'_>) -> Vec<&JsonWebKey<P>>where
P: ParametersInfo,
Find the list of keys which match the given constraints
sourcepub fn signing_key_for_algorithm(
&self,
alg: &JsonWebSignatureAlg,
) -> Option<&JsonWebKey<P>>where
P: ParametersInfo,
pub fn signing_key_for_algorithm(
&self,
alg: &JsonWebSignatureAlg,
) -> Option<&JsonWebKey<P>>where
P: ParametersInfo,
Find a key for the given algorithm. Returns None
if no suitable key
was found.
sourcepub fn available_signing_algorithms(&self) -> Vec<JsonWebSignatureAlg>where
P: ParametersInfo,
pub fn available_signing_algorithms(&self) -> Vec<JsonWebSignatureAlg>where
P: ParametersInfo,
Get a list of available signing algorithms for this JsonWebKeySet
Trait Implementations
source§impl<P> Clone for JsonWebKeySet<P>where
P: Clone,
impl<P> Clone for JsonWebKeySet<P>where
P: Clone,
source§fn clone(&self) -> JsonWebKeySet<P>
fn clone(&self) -> JsonWebKeySet<P>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<P> Debug for JsonWebKeySet<P>where
P: Debug,
impl<P> Debug for JsonWebKeySet<P>where
P: Debug,
source§impl<P> Default for JsonWebKeySet<P>
impl<P> Default for JsonWebKeySet<P>
source§fn default() -> JsonWebKeySet<P>
fn default() -> JsonWebKeySet<P>
Returns the “default value” for a type. Read more
source§impl<P> Deref for JsonWebKeySet<P>
impl<P> Deref for JsonWebKeySet<P>
§type Target = Vec<JsonWebKey<P>>
type Target = Vec<JsonWebKey<P>>
The resulting type after dereferencing.
source§impl<'de, P> Deserialize<'de> for JsonWebKeySet<P>where
P: Deserialize<'de>,
impl<'de, P> Deserialize<'de> for JsonWebKeySet<P>where
P: Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JsonWebKeySet<P>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JsonWebKeySet<P>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<P> FromIterator<JsonWebKey<P>> for JsonWebKeySet<P>
impl<P> FromIterator<JsonWebKey<P>> for JsonWebKeySet<P>
source§fn from_iter<T>(iter: T) -> JsonWebKeySet<P>where
T: IntoIterator<Item = JsonWebKey<P>>,
fn from_iter<T>(iter: T) -> JsonWebKeySet<P>where
T: IntoIterator<Item = JsonWebKey<P>>,
Creates a value from an iterator. Read more
source§impl<P> JsonSchema for JsonWebKeySet<P>where
P: JsonSchema,
impl<P> JsonSchema for JsonWebKeySet<P>where
P: JsonSchema,
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl<P> PartialEq for JsonWebKeySet<P>where
P: PartialEq,
impl<P> PartialEq for JsonWebKeySet<P>where
P: PartialEq,
source§fn eq(&self, other: &JsonWebKeySet<P>) -> bool
fn eq(&self, other: &JsonWebKeySet<P>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<P> Serialize for JsonWebKeySet<P>where
P: Serialize,
impl<P> Serialize for JsonWebKeySet<P>where
P: Serialize,
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more