pub struct SignedData {
pub encap_content_info: EncapsulatedContentInfo,
pub signer_info: SignerInfo,
pub cert_list: Vec<Certificate>,
/* private fields */
}
Expand description
Signed Data.
This includes the all signature information: message digest、signer info、cert list.
Fields§
§encap_content_info: EncapsulatedContentInfo
§signer_info: SignerInfo
§cert_list: Vec<Certificate>
Implementations§
Source§impl SignedData
impl SignedData
Sourcepub fn build_certificate_chain(
&self,
ca_pem: Option<&str>,
) -> Result<CertificateChain, PeSignError>
pub fn build_certificate_chain( &self, ca_pem: Option<&str>, ) -> Result<CertificateChain, PeSignError>
Build signer certificate chain.
Sourcepub fn build_contersignature_cert_chain(
&self,
ca_pem: Option<&str>,
) -> Result<Option<CertificateChain>, PeSignError>
pub fn build_contersignature_cert_chain( &self, ca_pem: Option<&str>, ) -> Result<Option<CertificateChain>, PeSignError>
Build countersigner certificate chain.
Sourcepub fn verify(&self, option: &VerifyOption) -> Result<PeSignStatus, PeSignError>
pub fn verify(&self, option: &VerifyOption) -> Result<PeSignStatus, PeSignError>
Verify the validity of the signed data.
Sourcepub fn get_signing_time(&self) -> Result<SystemTime, PeSignError>
pub fn get_signing_time(&self) -> Result<SystemTime, PeSignError>
Get signing time.
Trait Implementations§
Source§impl Clone for SignedData
impl Clone for SignedData
Source§fn clone(&self) -> SignedData
fn clone(&self) -> SignedData
Returns a duplicate of the value. Read more
1.0.0 · 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 SignedData
impl Debug for SignedData
Source§impl<'a> Decode<'a> for SignedData
impl<'a> Decode<'a> for SignedData
Source§impl Encode for SignedData
impl Encode for SignedData
Source§fn encoded_len(&self) -> Result<Length>
fn encoded_len(&self) -> Result<Length>
Compute the length of this value in bytes when encoded as ASN.1 DER.
Source§fn encode(&self, encoder: &mut impl Writer) -> Result<()>
fn encode(&self, encoder: &mut impl Writer) -> Result<()>
Encode this value as ASN.1 DER using the provided
Writer
.Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.
Source§impl PartialEq for SignedData
impl PartialEq for SignedData
impl Eq for SignedData
impl StructuralPartialEq for SignedData
Auto Trait Implementations§
impl Freeze for SignedData
impl RefUnwindSafe for SignedData
impl Send for SignedData
impl Sync for SignedData
impl Unpin for SignedData
impl UnwindSafe for SignedData
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