pub struct DecryptionPolicy {
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 xml: XmlInputPolicy,
pub resources: ResourcePolicy,
}Expand description
Immutable policy snapshot for XMLEnc decryption.
Fields§
§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.
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§fn clone(&self) -> DecryptionPolicy
fn clone(&self) -> DecryptionPolicy
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 DecryptionPolicy
impl Debug for DecryptionPolicy
Source§impl Default for DecryptionPolicy
impl Default for DecryptionPolicy
Source§fn default() -> DecryptionPolicy
fn default() -> DecryptionPolicy
Returns the “default value” for a type. Read more
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