HttpEngine.Builder.SetEnablePublicKeyPinningBypassForLocalTrustAnchors Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enables or disables public key pinning bypass for local trust anchors.
[Android.Runtime.Register("setEnablePublicKeyPinningBypassForLocalTrustAnchors", "(Z)Landroid/net/http/HttpEngine$Builder;", "GetSetEnablePublicKeyPinningBypassForLocalTrustAnchors_ZHandler", ApiSince=34)]
public virtual Android.Net.Http.HttpEngine.Builder SetEnablePublicKeyPinningBypassForLocalTrustAnchors(bool value);
[<Android.Runtime.Register("setEnablePublicKeyPinningBypassForLocalTrustAnchors", "(Z)Landroid/net/http/HttpEngine$Builder;", "GetSetEnablePublicKeyPinningBypassForLocalTrustAnchors_ZHandler", ApiSince=34)>]
abstract member SetEnablePublicKeyPinningBypassForLocalTrustAnchors : bool -> Android.Net.Http.HttpEngine.Builder
override this.SetEnablePublicKeyPinningBypassForLocalTrustAnchors : bool -> Android.Net.Http.HttpEngine.Builder
Parameters
- value
- Boolean
true to enable the bypass, false to disable.
Returns
the builder to facilitate chaining. This value cannot be null.
- Attributes
Remarks
Enables or disables public key pinning bypass for local trust anchors. Disabling the bypass for local trust anchors is highly discouraged since it may prohibit the app from communicating with the pinned hosts. E.g., a user may want to send all traffic through an SSL enabled proxy by changing the device proxy settings and adding the proxy certificate to the list of local trust anchor. Disabling the bypass will most likely prevent the app from sending any traffic to the pinned hosts. For more information see 'How does key pinning interact with local proxies and filters?' at https://www.chromium.org/Home/chromium-security/security-faq
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.