pub struct EncryptionPolicy {
pub validity: Option<PolicyValidity>,
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 encryption.
Fields§
§validity: Option<PolicyValidity>Explicitly authorized lifetime; checked again at operation entry.
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.
key_establishment: KeyEstablishmentPolicyShared agreement/KDF permission and cumulative work requirements.
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§impl Debug for EncryptionPolicy
impl Debug for EncryptionPolicy
Source§impl Default for EncryptionPolicy
impl Default for EncryptionPolicy
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