ExceptionDomains

Struct ExceptionDomains 

Source
pub struct ExceptionDomains {
    pub includes_subdomains: Option<bool>,
    pub exception_allows_insecure_http_loads: Option<bool>,
    pub exception_minimum_tls_version: Option<ExceptionMinimumTlsVersion>,
    pub exception_requires_forward_secrecy: Option<bool>,
    pub requires_certificate_transparency: Option<bool>,
}
Expand description

Exception Domains

Fields§

§includes_subdomains: Option<bool>

A Boolean value that indicates whether to extend the configuration to subdomains of the given domain.

You can include this key in any of the domain-specific dictionaries that you add to the NSExceptionDomains and NSPinnedDomains dictionaries. Adding the NSIncludesSubdomains key affects the applicability of the other configuration in the same domain-specific dictionary. The key is optional, with a default value of NO.

Set the value for this key to YES to apply the configuration for the given domain to all subdomains of the domain that have one additional path component. For example, if you set this value to YES and the domain name string is example.com, then the configuration applies to example.com, as well as math.example.com and history.example.com. However, it doesn’t apply to the subdomains advanced.math.example.com or ancient.history.example.com because those subdomains have two additional path components. If the value is NO the configuration applies only to example.com.

§Availability

  • iOS 9.0+
  • macOS 10.11+

§Framework

  • Security
§exception_allows_insecure_http_loads: Option<bool>

A Boolean value indicating whether to allow insecure HTTP loads.

Set the value for this key to YES to allow insecure HTTP loads for the given domain, or to be able to loosen the server trust evaluation requirements for HTTPS connections to the domain, as described in Performing Manual Server Trust Authentication.

Using this key doesn’t by itself change default server trust evaluation requirements for HTTPS connections, described in Ensure the Network Server Meets Minimum Requirements. Using only this key also doesn’t change the TLS or forward secrecy requirements imposed by ATS. As a result, you might need to combine this key with the NSExceptionMinimumTLSVersion or NSExceptionRequiresForwardSecrecy key in certain cases.

This key is optional. The default value is NO.

§Important

You must supply a justification during App Store review if you set the key’s value to YES, as described in Provide Justification for Exceptions.

§Availability

  • iOS 9.0+
  • macOS 10.11+

§Framework

  • Security
§exception_minimum_tls_version: Option<ExceptionMinimumTlsVersion>

The minimum Transport Layer Security (TLS) version for network connections.

This key is optional. The value is a string, with a default value of TLSv1.2.

§Important

You must supply a justification during App Store review if you use this key to set a protocol version lower than 1.2, as described in Provide Justification for Exceptions.

§Availability

  • iOS 9.0+
  • macOS 10.11+

§Framework

  • Security
§exception_requires_forward_secrecy: Option<bool>

A Boolean value indicating whether to override the perfect forward secrecy requirement.

Set the value for this key to NO to override the requirement that a server support perfect forward secrecy (PFS) for the given domain. Disabling this requirement also removes the key length check described in Ensure the Network Server Meets Minimum Requirements. However, it doesn’t impact the TLS version requirement. To control that, use NSExceptionMinimumTLSVersion.

This key is optional. The default value is YES, which limits the accepted ciphers to those that support PFS through Elliptic Curve Diffie-Hellman Ephemeral (ECDHE) key exchange.

§Availability

  • iOS 9.0+
  • macOS 10.11+

§Framework

  • Security
§requires_certificate_transparency: Option<bool>

A Boolean value indicating whether to require Certificate Transparency.

Certificate Transparency (CT) is a protocol that ATS can use to identify mistakenly or maliciously issued X.509 certificates. Set the value for the NSRequiresCertificateTransparency key to YES to require that for a given domain, server certificates are supported by valid, signed CT timestamps from at least two CT logs trusted by Apple. For more information about Certificate Transparency, see RFC6962.

Unlike most other ATS exceptions, using a non-default value in this case tightens security requirements.

This key is optional. The default value is NO.

§Availability

  • iOS 9.0+
  • macOS 10.11+

§Framework

  • Security

Trait Implementations§

Source§

impl Clone for ExceptionDomains

Source§

fn clone(&self) -> ExceptionDomains

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ExceptionDomains

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ExceptionDomains

Source§

fn default() -> ExceptionDomains

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ExceptionDomains

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for ExceptionDomains

Source§

fn eq(&self, other: &ExceptionDomains) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ExceptionDomains

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for ExceptionDomains

Source§

impl StructuralPartialEq for ExceptionDomains

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,