pub struct CodeSignature { /* private fields */ }
Expand description
These fields contain information about binary code signatures.
Implementations§
Source§impl CodeSignature
impl CodeSignature
Sourcepub fn get_exists(&self) -> Option<&bool>
pub fn get_exists(&self) -> Option<&bool>
Boolean to capture if a signature is present.
Sourcepub fn set_exists(&mut self, exists_arg: bool)
pub fn set_exists(&mut self, exists_arg: bool)
Sourcepub fn get_subject_name(&self) -> Option<&String>
pub fn get_subject_name(&self) -> Option<&String>
Subject name of the code signer
Sourcepub fn set_subject_name(&mut self, subject_name_arg: String)
pub fn set_subject_name(&mut self, subject_name_arg: String)
Sourcepub fn get_valid(&self) -> Option<&bool>
pub fn get_valid(&self) -> Option<&bool>
Boolean to capture if the digital signature is verified against the binary content.
Leave unpopulated if a certificate was unchecked.
Sourcepub fn set_valid(&mut self, valid_arg: bool)
pub fn set_valid(&mut self, valid_arg: bool)
Boolean to capture if the digital signature is verified against the binary content.
Leave unpopulated if a certificate was unchecked.
§Example
true
Sourcepub fn get_trusted(&self) -> Option<&bool>
pub fn get_trusted(&self) -> Option<&bool>
Stores the trust status of the certificate chain.
Validating the trust of the certificate chain may be complicated, and this field should only be populated by tools that actively check the status.
Sourcepub fn set_trusted(&mut self, trusted_arg: bool)
pub fn set_trusted(&mut self, trusted_arg: bool)
Stores the trust status of the certificate chain.
Validating the trust of the certificate chain may be complicated, and this field should only be populated by tools that actively check the status.
§Example
true
Sourcepub fn get_status(&self) -> Option<&String>
pub fn get_status(&self) -> Option<&String>
Additional information about the certificate status.
This is useful for logging cryptographic errors with the certificate validity or trust status. Leave unpopulated if the validity or trust of the certificate was unchecked.
Sourcepub fn set_status(&mut self, status_arg: String)
pub fn set_status(&mut self, status_arg: String)
Additional information about the certificate status.
This is useful for logging cryptographic errors with the certificate validity or trust status. Leave unpopulated if the validity or trust of the certificate was unchecked.
§Example
ERROR_UNTRUSTED_ROOT
Sourcepub fn get_team_id(&self) -> Option<&String>
pub fn get_team_id(&self) -> Option<&String>
The team identifier used to sign the process.
This is used to identify the team or vendor of a software product. The field is relevant to Apple *OS only.
Sourcepub fn set_team_id(&mut self, team_id_arg: String)
pub fn set_team_id(&mut self, team_id_arg: String)
The team identifier used to sign the process.
This is used to identify the team or vendor of a software product. The field is relevant to Apple *OS only.
§Example
EQHXZ8M8AV
Sourcepub fn get_signing_id(&self) -> Option<&String>
pub fn get_signing_id(&self) -> Option<&String>
The identifier used to sign the process.
This is used to identify the application manufactured by a software vendor. The field is relevant to Apple *OS only.
Sourcepub fn set_signing_id(&mut self, signing_id_arg: String)
pub fn set_signing_id(&mut self, signing_id_arg: String)
The identifier used to sign the process.
This is used to identify the application manufactured by a software vendor. The field is relevant to Apple *OS only.
§Example
com.apple.xpc.proxy
Sourcepub fn get_digest_algorithm(&self) -> Option<&String>
pub fn get_digest_algorithm(&self) -> Option<&String>
The hashing algorithm used to sign the process.
This value can distinguish signatures when a file is signed multiple times by the same signer but with a different digest algorithm.
Sourcepub fn set_digest_algorithm(&mut self, digest_algorithm_arg: String)
pub fn set_digest_algorithm(&mut self, digest_algorithm_arg: String)
The hashing algorithm used to sign the process.
This value can distinguish signatures when a file is signed multiple times by the same signer but with a different digest algorithm.
§Example
sha256
Sourcepub fn get_timestamp(&self) -> Option<&Timestamp>
pub fn get_timestamp(&self) -> Option<&Timestamp>
Date and time when the code signature was generated and signed.
Sourcepub fn set_timestamp(&mut self, timestamp_arg: Timestamp)
pub fn set_timestamp(&mut self, timestamp_arg: Timestamp)
Trait Implementations§
Source§impl Clone for CodeSignature
impl Clone for CodeSignature
Source§fn clone(&self) -> CodeSignature
fn clone(&self) -> CodeSignature
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more