pub struct EncryptionPolicy {
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 xml: XmlInputPolicy,
pub resources: ResourcePolicy,
}Expand description
Immutable policy snapshot for XMLEnc encryption.
Fields§
§data_algorithms: Option<HashSet<DataEncryptionAlgorithm>>Allowed content-encryption algorithms.
key_transport_algorithms: Option<HashSet<KeyTransportAlgorithm>>Allowed RSA key-transport algorithms.
key_wrap_algorithms: Option<HashSet<KeyWrapAlgorithm>>Allowed symmetric key-wrap algorithms.
oaep_digests: Option<HashSet<OaepDigestAlgorithm>>Allowed OAEP digest algorithms.
rsa_keys: RsaKeyPolicyRSA requirements enforced when producing OAEP key transport.
xml: XmlInputPolicyXML parser rules.
resources: ResourcePolicyResource ceilings.
Implementations§
Source§impl EncryptionPolicy
impl EncryptionPolicy
Sourcepub fn validate(&self) -> Result<(), PolicyViolation>
pub fn validate(&self) -> Result<(), PolicyViolation>
Validate the complete snapshot before outbound encryption work begins.
Trait Implementations§
Source§impl Clone for EncryptionPolicy
impl Clone for EncryptionPolicy
Source§fn clone(&self) -> EncryptionPolicy
fn clone(&self) -> EncryptionPolicy
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 EncryptionPolicy
impl Debug for EncryptionPolicy
Source§impl Default for EncryptionPolicy
impl Default for EncryptionPolicy
Source§fn default() -> EncryptionPolicy
fn default() -> EncryptionPolicy
Returns the “default value” for a type. Read more
impl XmlDocumentPolicy for EncryptionPolicy
Auto Trait Implementations§
impl Freeze for EncryptionPolicy
impl RefUnwindSafe for EncryptionPolicy
impl Send for EncryptionPolicy
impl Sync for EncryptionPolicy
impl Unpin for EncryptionPolicy
impl UnsafeUnpin for EncryptionPolicy
impl UnwindSafe for EncryptionPolicy
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