pub struct CmsDecoder { /* private fields */ }Expand description
Wraps Security.framework CMS decoder state.
Implementations§
Source§impl CmsDecoder
impl CmsDecoder
Sourcepub fn update_message(&mut self, data: &[u8]) -> Result<()>
pub fn update_message(&mut self, data: &[u8]) -> Result<()>
Wraps the corresponding Security.framework CMS decoder operation.
Sourcepub fn finalize_message(&mut self) -> Result<()>
pub fn finalize_message(&mut self) -> Result<()>
Wraps the corresponding Security.framework CMS decoder operation.
Sourcepub fn set_detached_content(&mut self, data: &[u8]) -> Result<()>
pub fn set_detached_content(&mut self, data: &[u8]) -> Result<()>
Wraps the corresponding Security.framework CMS decoder operation.
Sourcepub fn detached_content(&self) -> Result<Option<Vec<u8>>>
pub fn detached_content(&self) -> Result<Option<Vec<u8>>>
Wraps the corresponding Security.framework CMS decoder operation.
Sourcepub fn num_signers(&self) -> Result<usize>
pub fn num_signers(&self) -> Result<usize>
Wraps the corresponding Security.framework CMS decoder operation.
Sourcepub fn signer_status(
&self,
signer_index: usize,
policy: Option<&Policy>,
evaluate_sec_trust: bool,
) -> Result<Value>
pub fn signer_status( &self, signer_index: usize, policy: Option<&Policy>, evaluate_sec_trust: bool, ) -> Result<Value>
Wraps the corresponding Security.framework CMS decoder operation.
Sourcepub fn signer_email_address(
&self,
signer_index: usize,
) -> Result<Option<String>>
pub fn signer_email_address( &self, signer_index: usize, ) -> Result<Option<String>>
Wraps the corresponding Security.framework CMS decoder operation.
Sourcepub fn signer_certificate(&self, signer_index: usize) -> Result<Certificate>
pub fn signer_certificate(&self, signer_index: usize) -> Result<Certificate>
Wraps the corresponding Security.framework CMS decoder operation.
Sourcepub fn is_content_encrypted(&self) -> Result<bool>
pub fn is_content_encrypted(&self) -> Result<bool>
Wraps the corresponding Security.framework CMS decoder operation.
Sourcepub fn encapsulated_content_type(&self) -> Result<Option<Vec<u8>>>
pub fn encapsulated_content_type(&self) -> Result<Option<Vec<u8>>>
Wraps the corresponding Security.framework CMS decoder operation.
Sourcepub fn content(&self) -> Result<Option<Vec<u8>>>
pub fn content(&self) -> Result<Option<Vec<u8>>>
Wraps the corresponding Security.framework CMS decoder operation.
Sourcepub fn signer_signing_time(
&self,
signer_index: usize,
) -> Result<Option<SystemTime>>
pub fn signer_signing_time( &self, signer_index: usize, ) -> Result<Option<SystemTime>>
Wraps the corresponding Security.framework CMS decoder operation.
Sourcepub fn signer_timestamp(
&self,
signer_index: usize,
) -> Result<Option<SystemTime>>
pub fn signer_timestamp( &self, signer_index: usize, ) -> Result<Option<SystemTime>>
Wraps the corresponding Security.framework CMS decoder operation.
Sourcepub fn signer_timestamp_with_policy(
&self,
policy: Option<&Policy>,
signer_index: usize,
) -> Result<Option<SystemTime>>
pub fn signer_timestamp_with_policy( &self, policy: Option<&Policy>, signer_index: usize, ) -> Result<Option<SystemTime>>
Wraps the corresponding Security.framework CMS decoder operation.
Sourcepub fn signer_timestamp_certificates(
&self,
signer_index: usize,
) -> Result<Value>
pub fn signer_timestamp_certificates( &self, signer_index: usize, ) -> Result<Value>
Wraps the corresponding Security.framework CMS decoder operation.
Sourcepub fn all_certificates(&self) -> Result<Vec<Certificate>>
pub fn all_certificates(&self) -> Result<Vec<Certificate>>
Wraps the corresponding Security.framework CMS decoder operation.