pub struct VerificationPolicy {
pub signature_algorithms: Option<HashSet<SignatureAlgorithm>>,
pub digest_algorithms: Option<HashSet<DigestAlgorithm>>,
pub key_trust: KeyTrustPolicy,
pub reference_uri_types: UriTypeSet,
pub retrieval_uri_types: UriTypeSet,
pub transforms: Option<HashSet<String>>,
pub process_manifests: bool,
pub xml: XmlInputPolicy,
pub xpath_here_semantics: XPathHereSemantics,
pub resources: ResourcePolicy,
}Expand description
Immutable policy snapshot for XMLDSig verification.
Fields§
§signature_algorithms: Option<HashSet<SignatureAlgorithm>>Allowed signature methods; None accepts every implemented method subject to
independent gates such as KeyTrustPolicy::allowed_legacy_signature_algorithms.
digest_algorithms: Option<HashSet<DigestAlgorithm>>Allowed reference digest methods; None accepts every implemented method.
key_trust: KeyTrustPolicyKey and certificate trust rules.
reference_uri_types: UriTypeSetAllowed Reference URI classes.
retrieval_uri_types: UriTypeSetAllowed RetrievalMethod URI classes.
transforms: Option<HashSet<String>>Allowed transform and canonicalization URIs; None accepts every implemented algorithm.
process_manifests: boolWhether authenticated Manifest references are processed.
xml: XmlInputPolicyXML parser rules.
xpath_here_semantics: XPathHereSemanticsNode selected for the XPath here() extension function.
resources: ResourcePolicyResource ceilings.
Implementations§
Source§impl VerificationPolicy
impl VerificationPolicy
Sourcepub fn validate(&self) -> Result<(), PolicyViolation>
pub fn validate(&self) -> Result<(), PolicyViolation>
Validate the complete snapshot against implementation hard ceilings.
Sourcepub fn check_signature_algorithm(
&self,
algorithm: SignatureAlgorithm,
) -> Result<(), PolicyViolation>
pub fn check_signature_algorithm( &self, algorithm: SignatureAlgorithm, ) -> Result<(), PolicyViolation>
Enforce the signature algorithm after key resolution.
Trait Implementations§
Source§impl Clone for VerificationPolicy
impl Clone for VerificationPolicy
Source§fn clone(&self) -> VerificationPolicy
fn clone(&self) -> VerificationPolicy
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 VerificationPolicy
impl Debug for VerificationPolicy
Source§impl Default for VerificationPolicy
impl Default for VerificationPolicy
Source§fn default() -> VerificationPolicy
fn default() -> VerificationPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VerificationPolicy
impl RefUnwindSafe for VerificationPolicy
impl Send for VerificationPolicy
impl Sync for VerificationPolicy
impl Unpin for VerificationPolicy
impl UnsafeUnpin for VerificationPolicy
impl UnwindSafe for VerificationPolicy
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