HttpEngine.Builder.SetEnablePublicKeyPinningBypassForLocalTrustAnchors 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
启用或禁用本地信任定位点的公钥固定绕过。
[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
参数
- value
- Boolean
如果启用绕过,则为 false 以禁用。
返回
用于促进链接的生成器。 此值不能为 null。
- 特性
注解
启用或禁用本地信任定位点的公钥固定绕过。 强烈建议禁止对本地信任定位点禁用绕过,因为它可能会禁止应用与固定主机通信。 例如,用户可能需要通过启用了 SSL 的代理发送所有流量,方法是更改设备代理设置并将代理证书添加到本地信任定位点列表。 禁用旁路很可能阻止应用将任何流量发送到固定主机。 有关详细信息,请参阅“密钥固定如何与本地代理和筛选器交互? at https://www.chromium.org/Home/chromium-security/security-faq
Android 参考。android.net.http.HttpEngine.Builder.setEnablePublicKeyPinningBypassForLocalTrustAnchors
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。