pub struct KeyResolverConfig {
pub lookup_certs: Vec<Vec<u8>>,
pub trusted_certs: Vec<Vec<u8>>,
pub named_keys: HashMap<String, VerificationKey>,
}Expand description
Configuration for the default XMLDSig key resolver.
The configuration owns all key material and has no global registry. Chain verification is opt-in so callers that pin an embedded certificate can use the documented TOFU model without constructing a certificate path.
Fields§
§lookup_certs: Vec<Vec<u8>>DER-encoded certificates available to X.509 selectors and as untrusted
path intermediates. They establish trust only by chaining to an entry in
Self::trusted_certs.
trusted_certs: Vec<Vec<u8>>DER-encoded certificates accepted as trust anchors.
named_keys: HashMap<String, VerificationKey>Verification keys addressable by <KeyName> content.
Trait Implementations§
Source§impl Clone for KeyResolverConfig
impl Clone for KeyResolverConfig
Source§fn clone(&self) -> KeyResolverConfig
fn clone(&self) -> KeyResolverConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyResolverConfig
impl Debug for KeyResolverConfig
Source§impl Default for KeyResolverConfig
impl Default for KeyResolverConfig
Source§fn default() -> KeyResolverConfig
fn default() -> KeyResolverConfig
Returns the “default value” for a type. Read more
impl Eq for KeyResolverConfig
Source§impl PartialEq for KeyResolverConfig
impl PartialEq for KeyResolverConfig
impl StructuralPartialEq for KeyResolverConfig
Auto Trait Implementations§
impl Freeze for KeyResolverConfig
impl RefUnwindSafe for KeyResolverConfig
impl Send for KeyResolverConfig
impl Sync for KeyResolverConfig
impl Unpin for KeyResolverConfig
impl UnsafeUnpin for KeyResolverConfig
impl UnwindSafe for KeyResolverConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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