[−][src]Struct security_framework::trust_settings::TrustSettings
Allows access to the certificates and their trust settings in a given domain.
Implementations
impl TrustSettings
[src]
pub fn new(domain: Domain) -> Self
[src]
Create a new TrustSettings for the given domain.
You can call iter()
to discover the certificates with settings in this domain.
Then you can call tls_trust_settings_for_certificate()
with a given certificate
to learn what the aggregate trust setting for that certificate within this domain.
pub fn iter(&self) -> Result<TrustSettingsIter>
[src]
Create an iterator over the certificates with settings in this domain. This produces an empty iterator if there are no such certificates.
pub fn tls_trust_settings_for_certificate(
&self,
cert: &SecCertificate
) -> Result<Option<TrustSettingsForCertificate>>
[src]
&self,
cert: &SecCertificate
) -> Result<Option<TrustSettingsForCertificate>>
Returns the aggregate trust setting for the given certificate.
This tells you whether the certificate should be trusted as a TLS root certificate.
If the certificate has no trust settings in the given domain, the
errSecItemNotFound
error is returned.
If the certificate has no specific trust settings for TLS in the
given domain None
is returned.
Otherwise, the specific trust settings are aggregated and returned.
Auto Trait Implementations
impl RefUnwindSafe for TrustSettings
impl Send for TrustSettings
impl Sync for TrustSettings
impl Unpin for TrustSettings
impl UnwindSafe for TrustSettings
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,
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.
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>,