SSLSocketFactory.IsSecure(Socket) Method
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.
Checks whether a socket connection is secure.
[Android.Runtime.Register("isSecure", "(Ljava/net/Socket;)Z", "GetIsSecure_Ljava_net_Socket_Handler")]
public virtual bool IsSecure(Java.Net.Socket? sock);
[<Android.Runtime.Register("isSecure", "(Ljava/net/Socket;)Z", "GetIsSecure_Ljava_net_Socket_Handler")>]
abstract member IsSecure : Java.Net.Socket -> bool
override this.IsSecure : Java.Net.Socket -> bool
- sock
- Socket
the connected socket
true
- Attributes
if the argument is invalid
Checks whether a socket connection is secure. This factory creates TLS/SSL socket connections which, by default, are considered secure. <br/> Derived classes may override this method to perform runtime checks, for example based on the cypher suite.
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.
Produkt | Versioner |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |