Javax.Net.Ssl.IX509TrustManager.CheckServerTrusted Method
Checks whether the specified certificate chain (partial or complete) can be validated and is trusted for server authentication for the specified key exchange algorithm.

Syntax

[Android.Runtime.Register("checkServerTrusted", "([Ljava/security/cert/X509Certificate;Ljava/lang/String;)V", "GetCheckServerTrusted_arrayLjava_security_cert_X509Certificate_Ljava_lang_String_Handler:Javax.Net.Ssl.IX509TrustManagerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void CheckServerTrusted (Java.Security.Cert.X509Certificate[] chain, string authType)

Parameters

chain
the certificate chain to validate.
authType
the key exchange algorithm name.

Exceptions

TypeReason
Java.Security.Cert.CertificateExceptionif the certificate chain can't be validated or isn't trusted.
Java.Lang.IllegalArgumentExceptionif the specified certificate chain is empty or null, or if the specified authentication type is null or an empty string.

Remarks

Checks whether the specified certificate chain (partial or complete) can be validated and is trusted for server authentication for the specified key exchange algorithm.

[Android Documentation]

Requirements

Namespace: Javax.Net.Ssl
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1