Skip to main content

parse_encrypted_data_template_node_with_policy

Function parse_encrypted_data_template_node_with_policy 

Source
pub fn parse_encrypted_data_template_node_with_policy(
    node: Node<'_, '_>,
    policy: &EncryptionPolicy,
) -> Result<EncryptedData, XmlEncError>
Expand description

Parse an xenc:EncryptedData template under an immutable policy snapshot.

This applies the complete encrypted-data grammar and metadata limits while permitting empty CipherValue placeholders that encryption will replace. Non-empty placeholders must still be well-formed base64. The containing source document is reparsed under this policy before template inspection.