다음을 통해 공유


X509TrustManagerExtensions.IsUserAddedCertificate(X509Certificate) Method

Definition

Checks whether a CA certificate is added by an user.

[Android.Runtime.Register("isUserAddedCertificate", "(Ljava/security/cert/X509Certificate;)Z", "GetIsUserAddedCertificate_Ljava_security_cert_X509Certificate_Handler")]
public virtual bool IsUserAddedCertificate (Java.Security.Cert.X509Certificate? cert);
[<Android.Runtime.Register("isUserAddedCertificate", "(Ljava/security/cert/X509Certificate;)Z", "GetIsUserAddedCertificate_Ljava_security_cert_X509Certificate_Handler")>]
abstract member IsUserAddedCertificate : Java.Security.Cert.X509Certificate -> bool
override this.IsUserAddedCertificate : Java.Security.Cert.X509Certificate -> bool

Parameters

Returns

true to indicate that the certificate authority exists in the user added certificate store, false otherwise.

Attributes

Remarks

Checks whether a CA certificate is added by an user.

Since X509TrustManager#checkServerTrusted may allow its parameter chain to chain up to user-added CA certificates, this method can be used to perform additional policies for user-added CA certificates.

Java documentation for android.net.http.X509TrustManagerExtensions.isUserAddedCertificate(java.security.cert.X509Certificate).

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.

Applies to