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>

source

pub fn new(keys: Vec<JsonWebKey<P>>) -> JsonWebKeySet<P>

source

pub fn find_key( &self, constraints: &ConstraintSet<'_>, ) -> Option<&JsonWebKey<P>>
where P: ParametersInfo,

Find the best key given the constraints

source

pub fn find_keys(&self, constraints: &ConstraintSet<'_>) -> Vec<&JsonWebKey<P>>
where P: ParametersInfo,

Find the list of keys which match the given constraints

source

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.

source

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,

source§

fn clone(&self) -> JsonWebKeySet<P>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<P> Debug for JsonWebKeySet<P>
where P: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<P> Default for JsonWebKeySet<P>

source§

fn default() -> JsonWebKeySet<P>

Returns the “default value” for a type. Read more
source§

impl<P> Deref for JsonWebKeySet<P>

§

type Target = Vec<JsonWebKey<P>>

The resulting type after dereferencing.
source§

fn deref(&self) -> &<JsonWebKeySet<P> as Deref>::Target

Dereferences the value.
source§

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>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<P> FromIterator<JsonWebKey<P>> for JsonWebKeySet<P>

source§

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,

source§

fn schema_name() -> String

The name of the generated JSON Schema. Read more
source§

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

Generates a JSON Schema for this type. Read more
source§

fn is_referenceable() -> bool

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more
source§

impl<P> PartialEq for JsonWebKeySet<P>
where P: PartialEq,

source§

fn eq(&self, other: &JsonWebKeySet<P>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

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,

Serialize this value into the given Serde serializer. Read more
source§

impl<P> Eq for JsonWebKeySet<P>
where P: Eq,

source§

impl<P> StructuralPartialEq for JsonWebKeySet<P>