pub struct DecryptionPolicy {
pub validity: Option<PolicyValidity>,
pub uris: UriPolicy,
pub transforms: TransformPolicy,
pub data_algorithms: Option<HashSet<DataEncryptionAlgorithm>>,
pub key_transport_algorithms: Option<HashSet<KeyTransportAlgorithm>>,
pub key_wrap_algorithms: Option<HashSet<KeyWrapAlgorithm>>,
pub oaep_digests: Option<HashSet<OaepDigestAlgorithm>>,
pub rsa_keys: RsaKeyPolicy,
pub key_establishment: KeyEstablishmentPolicy,
pub xml: XmlInputPolicy,
pub resources: ResourcePolicy,
}Expand description
Immutable policy snapshot for XMLEnc decryption.
Fields§
§validity: Option<PolicyValidity>Explicitly authorized lifetime; checked again at operation entry.
uris: UriPolicyURI-class permissions for ciphertext and indirect key references.
transforms: TransformPolicyShared transform permissions and same-document reference semantics.
data_algorithms: Option<HashSet<DataEncryptionAlgorithm>>Allowed content-decryption algorithms.
key_transport_algorithms: Option<HashSet<KeyTransportAlgorithm>>Allowed RSA key-transport algorithms accepted on input.
key_wrap_algorithms: Option<HashSet<KeyWrapAlgorithm>>Allowed symmetric key-wrap algorithms accepted on input.
oaep_digests: Option<HashSet<OaepDigestAlgorithm>>Allowed OAEP digest algorithms accepted on input.
rsa_keys: RsaKeyPolicyRSA requirements enforced before OAEP recovery; defaults to 2048 bits. Legacy input requires an explicit caller-selected lower minimum.
key_establishment: KeyEstablishmentPolicyShared agreement/KDF permission and cumulative work requirements.
xml: XmlInputPolicyXML parser rules.
resources: ResourcePolicyResource ceilings.
Implementations§
Source§impl DecryptionPolicy
impl DecryptionPolicy
Sourcepub fn validate(&self) -> Result<(), PolicyViolation>
pub fn validate(&self) -> Result<(), PolicyViolation>
Validate the complete snapshot before inbound decryption work begins.
Trait Implementations§
Source§impl Clone for DecryptionPolicy
impl Clone for DecryptionPolicy
Source§impl Debug for DecryptionPolicy
impl Debug for DecryptionPolicy
Source§impl Default for DecryptionPolicy
impl Default for DecryptionPolicy
impl XmlDocumentPolicy for DecryptionPolicy
Auto Trait Implementations§
impl Freeze for DecryptionPolicy
impl RefUnwindSafe for DecryptionPolicy
impl Send for DecryptionPolicy
impl Sync for DecryptionPolicy
impl Unpin for DecryptionPolicy
impl UnsafeUnpin for DecryptionPolicy
impl UnwindSafe for DecryptionPolicy
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