pub struct VerificationPolicy {
pub signature_algorithms: Option<HashSet<SignatureAlgorithm>>,
pub digest_algorithms: Option<HashSet<DigestAlgorithm>>,
pub ecdsa_signature_value_encoding: EcdsaSignatureValueEncoding,
pub key_trust: KeyTrustPolicy,
pub key_sources: KeySourcePolicy,
pub uris: UriPolicy,
pub transforms: TransformPolicy,
pub manifest_processing: ManifestProcessing,
pub xml: XmlInputPolicy,
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.
ecdsa_signature_value_encoding: EcdsaSignatureValueEncodingRequired ECDSA SignatureValue wire representation.
key_trust: KeyTrustPolicyKey and certificate trust rules.
key_sources: KeySourcePolicyKeyInfo source permissions.
uris: UriPolicyReference and key-retrieval URI permissions.
transforms: TransformPolicyTransform and canonicalization permissions.
manifest_processing: ManifestProcessingWhether authenticated Manifest references are processed.
xml: XmlInputPolicyXML parser rules.
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
impl XmlDocumentPolicy for VerificationPolicy
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