pub struct SigningPolicy {
pub signature_algorithms: Option<HashSet<SignatureAlgorithm>>,
pub digest_algorithms: Option<HashSet<DigestAlgorithm>>,
pub ecdsa_signature_value_encoding: EcdsaSignatureValueEncoding,
pub rsa_keys: RsaKeyPolicy,
pub uris: UriPolicy,
pub transforms: TransformPolicy,
pub manifest_processing: ManifestProcessing,
pub xml: XmlInputPolicy,
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.
ecdsa_signature_value_encoding: EcdsaSignatureValueEncodingECDSA SignatureValue wire representation emitted by signing.
rsa_keys: RsaKeyPolicyRSA requirements enforced before producing a signature.
uris: UriPolicyReference URI permissions. External URIs remain unsupported until the caller supplies request-scoped external bytes through the signing API.
transforms: TransformPolicyTransform and canonicalization permissions.
manifest_processing: ManifestProcessingWhether direct <Object>/<Manifest> reference digests are populated.
xml: XmlInputPolicyXML parser rules.
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
impl XmlDocumentPolicy for SigningPolicy
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