[][src]Struct codesign_verify::SignatureContext

pub struct SignatureContext(_);

Used to extract additional information from the signing leaf certificate

Implementations

impl SignatureContext[src]

pub fn subject_name(&self) -> Name[src]

Retrieve the subject name on the leaf certificate

Examples

use codesign_verify::CodeSignVerifier;

let ctx = CodeSignVerifier::for_file("C:/Windows/explorer.exe").unwrap().verify().unwrap();
assert_eq!(
   ctx.subject_name().organization.as_deref(),
   Some("Microsoft Corporation")
);

pub fn issuer_name(&self) -> Name[src]

Retrieve the issuer name on the leaf certificate

pub fn sha1_thumbprint(&self) -> String[src]

Compute the sha1 thumbprint of the leaf certificate

pub fn sha256_thumbprint(&self) -> String[src]

Compute the sha256 thumbprint of the leaf certificate

pub fn serial(&self) -> Option<String>[src]

Retrieve the leaf certificate serial number

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.