次の方法で共有


HttpsURLConnection.HostnameVerifier Property

Definition

Gets the HostnameVerifier in place on this instance. -or- Sets the HostnameVerifier for this instance.

public virtual Javax.Net.Ssl.IHostnameVerifier? HostnameVerifier { [Android.Runtime.Register("getHostnameVerifier", "()Ljavax/net/ssl/HostnameVerifier;", "GetGetHostnameVerifierHandler")] get; [Android.Runtime.Register("setHostnameVerifier", "(Ljavax/net/ssl/HostnameVerifier;)V", "GetSetHostnameVerifier_Ljavax_net_ssl_HostnameVerifier_Handler")] set; }
[<get: Android.Runtime.Register("getHostnameVerifier", "()Ljavax/net/ssl/HostnameVerifier;", "GetGetHostnameVerifierHandler")>]
[<set: Android.Runtime.Register("setHostnameVerifier", "(Ljavax/net/ssl/HostnameVerifier;)V", "GetSetHostnameVerifier_Ljavax_net_ssl_HostnameVerifier_Handler")>]
member this.HostnameVerifier : Javax.Net.Ssl.IHostnameVerifier with get, set

Property Value

the host name verifier

Attributes

Exceptions

if the specified verifier is null.

Remarks

Property getter documentation:

Gets the HostnameVerifier in place on this instance.

Java documentation for javax.net.ssl.HttpsURLConnection.getHostnameVerifier().

Property setter documentation:

Sets the HostnameVerifier for this instance.

New instances of this class inherit the default static hostname verifier set by #setDefaultHostnameVerifier(HostnameVerifier) setDefaultHostnameVerifier. Calls to this method replace this object's HostnameVerifier.

Android's HttpsURLConnection relies on the HostnameVerifier for the <em>entire</em> hostname verification step.

Java documentation for javax.net.ssl.HttpsURLConnection.setHostnameVerifier(javax.net.ssl.HostnameVerifier).

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