X509TrustManagerExtensions.IsUserAddedCertificate(X509Certificate) 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.
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
- cert
- X509Certificate
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.
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.