Org.Apache.Http.Conn.Ssl.IX509HostnameVerifier
Interface for checking if a hostname matches the names stored inside the server's X.509 certificate.

See Also: IX509HostnameVerifier Members

Syntax

[Android.Runtime.Register("org/apache/http/conn/ssl/X509HostnameVerifier", "", "Org.Apache.Http.Conn.Ssl.IX509HostnameVerifierInvoker")]
public interface IX509HostnameVerifier : Javax.Net.Ssl.IHostnameVerifier, IDisposable

Remarks

Interface for checking if a hostname matches the names stored inside the server's X.509 certificate. Implements javax.net.ssl.HostnameVerifier, but we don't actually use that interface. Instead we added some methods that take String parameters (instead of javax.net.ssl.HostnameVerifier's SSLSession). JUnit is a lot easier this way! :-)

We provide the HostnameVerifier.DEFAULT, HostnameVerifier.STRICT, and HostnameVerifier.ALLOW_ALL implementations. But feel free to define your own implementation!

Inspired by Sebastian Hauer's original StrictSSLProtocolSocketFactory in the HttpClient "contrib" repository.

[Android Documentation]

Requirements

Namespace: Org.Apache.Http.Conn.Ssl
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1