IHostnameVerifier.Verify(String, ISSLSession) 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.
Verify that the host name is an acceptable match with the server's authentication scheme.
[Android.Runtime.Register("verify", "(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z", "GetVerify_Ljava_lang_String_Ljavax_net_ssl_SSLSession_Handler:Javax.Net.Ssl.IHostnameVerifierInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool Verify (string? hostname, Javax.Net.Ssl.ISSLSession? session);
[<Android.Runtime.Register("verify", "(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z", "GetVerify_Ljava_lang_String_Ljavax_net_ssl_SSLSession_Handler:Javax.Net.Ssl.IHostnameVerifierInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Verify : string * Javax.Net.Ssl.ISSLSession -> bool
Parameters
- hostname
- String
the host name
- session
- ISSLSession
SSLSession used on the connection to host
Returns
true if the host name is acceptable
- Attributes
Remarks
Verify that the host name is an acceptable match with the server's authentication scheme.
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.