pub struct CmsEncoder { /* private fields */ }Implementations§
Source§impl CmsEncoder
impl CmsEncoder
pub fn type_id() -> usize
pub fn set_signer_algorithm( &mut self, algorithm: CmsDigestAlgorithm, ) -> Result<()>
pub fn add_signers(&mut self, signers: &[Identity]) -> Result<()>
pub fn signers(&self) -> Result<Value>
pub fn add_recipients(&mut self, recipients: &[Certificate]) -> Result<()>
pub fn recipients(&self) -> Result<Value>
pub fn set_has_detached_content(&mut self, detached_content: bool) -> Result<()>
pub fn has_detached_content(&self) -> Result<bool>
pub fn set_encapsulated_content_type_oid(&mut self, oid: &str) -> Result<()>
pub fn encapsulated_content_type(&self) -> Result<Option<Vec<u8>>>
pub fn add_supporting_certificates( &mut self, certificates: &[Certificate], ) -> Result<()>
pub fn supporting_certificates(&self) -> Result<Value>
pub fn add_signed_attributes( &mut self, signed_attributes: CmsSignedAttributes, ) -> Result<()>
pub fn set_certificate_chain_mode( &mut self, chain_mode: CmsCertificateChainMode, ) -> Result<()>
pub fn certificate_chain_mode(&self) -> Result<CmsCertificateChainMode>
pub fn update_content(&mut self, data: &[u8]) -> Result<()>
pub fn encoded_content(&self) -> Result<Vec<u8>>
pub fn signer_timestamp( &self, signer_index: usize, ) -> Result<Option<SystemTime>>
pub fn signer_timestamp_with_policy( &self, policy: Option<&Policy>, signer_index: usize, ) -> Result<Option<SystemTime>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CmsEncoder
impl RefUnwindSafe for CmsEncoder
impl !Send for CmsEncoder
impl !Sync for CmsEncoder
impl Unpin for CmsEncoder
impl UnsafeUnpin for CmsEncoder
impl UnwindSafe for CmsEncoder
Blanket Implementations§
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