pub struct SigningPolicy {
pub signature_algorithms: Option<HashSet<SignatureAlgorithm>>,
pub digest_algorithms: Option<HashSet<DigestAlgorithm>>,
pub rsa_keys: RsaKeyPolicy,
pub transforms: Option<HashSet<String>>,
pub xml: XmlInputPolicy,
pub xpath_here_semantics: XPathHereSemantics,
pub resources: ResourcePolicy,
}Expand description
Immutable policy snapshot for XMLDSig signing.
Fields§
§signature_algorithms: Option<HashSet<SignatureAlgorithm>>Allowed signing methods; None uses the implemented secure defaults.
digest_algorithms: Option<HashSet<DigestAlgorithm>>Allowed reference digest methods; None uses the implemented secure defaults.
rsa_keys: RsaKeyPolicyRSA requirements enforced before producing a signature.
transforms: Option<HashSet<String>>Allowed transform URIs; None accepts every implemented transform.
xml: XmlInputPolicyXML parser rules.
xpath_here_semantics: XPathHereSemanticsNode selected for the XPath here() extension function.
resources: ResourcePolicyResource ceilings.
Implementations§
Source§impl SigningPolicy
impl SigningPolicy
Sourcepub fn validate(&self) -> Result<(), PolicyViolation>
pub fn validate(&self) -> Result<(), PolicyViolation>
Validate the complete snapshot before signing work begins.
Trait Implementations§
Source§impl Clone for SigningPolicy
impl Clone for SigningPolicy
Source§fn clone(&self) -> SigningPolicy
fn clone(&self) -> SigningPolicy
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 SigningPolicy
impl Debug for SigningPolicy
Source§impl Default for SigningPolicy
impl Default for SigningPolicy
Source§fn default() -> SigningPolicy
fn default() -> SigningPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SigningPolicy
impl RefUnwindSafe for SigningPolicy
impl Send for SigningPolicy
impl Sync for SigningPolicy
impl Unpin for SigningPolicy
impl UnsafeUnpin for SigningPolicy
impl UnwindSafe for SigningPolicy
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