pub struct KeyResolverConfig {
pub trusted_certs: Vec<Vec<u8>>,
pub named_keys: HashMap<String, VerificationKey>,
pub verify_chains: bool,
pub verification_time: Option<SystemTime>,
pub max_chain_depth: usize,
}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§
§trusted_certs: Vec<Vec<u8>>DER-encoded certificates accepted as trust anchors.
named_keys: HashMap<String, VerificationKey>Verification keys addressable by <KeyName> content.
verify_chains: boolWhether embedded X.509 certificate chains must terminate at a trust anchor.
verification_time: Option<SystemTime>Certificate verification time override; None selects the system clock.
max_chain_depth: usizeMaximum certificates in a validated path, including the trust anchor.
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
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