HttpsURLConnection.HostnameVerifier Property
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.
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.
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.