Freigeben über


IHostnameVerifier.Verify(String, ISSLSession) Method

Definition

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.

Java documentation for javax.net.ssl.HostnameVerifier.verify(java.lang.String, javax.net.ssl.SSLSession).

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