SSLSocketFactory.IsSecure(Socket) Method

Definition

Caution

deprecated

Checks whether a socket connection is secure.

[Android.Runtime.Register("isSecure", "(Ljava/net/Socket;)Z", "GetIsSecure_Ljava_net_Socket_Handler")]
[System.Obsolete("deprecated")]
public virtual bool IsSecure (Java.Net.Socket? sock);
[<Android.Runtime.Register("isSecure", "(Ljava/net/Socket;)Z", "GetIsSecure_Ljava_net_Socket_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member IsSecure : Java.Net.Socket -> bool
override this.IsSecure : Java.Net.Socket -> bool

Parameters

sock
Socket

the connected socket

Returns

Boolean

<code>true</code>

Implements

Attributes

Exceptions

if the argument is invalid

Remarks

Java documentation for org.apache.http.conn.ssl.SSLSocketFactory.isSecure(java.net.Socket).

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