[−][src]Struct codesign_verify::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
impl RefUnwindSafe for SignatureContext
[src]
impl !Send for SignatureContext
[src]
impl !Sync for SignatureContext
[src]
impl Unpin for SignatureContext
[src]
impl UnwindSafe for SignatureContext
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,