SSLSocket Constructors

Definition

Overloads

SSLSocket()

Used only by subclasses.

SSLSocket(InetAddress, Int32)

Used only by subclasses.

SSLSocket(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

SSLSocket(String, Int32)

Used only by subclasses.

SSLSocket(InetAddress, Int32, InetAddress, Int32)

Used only by subclasses.

SSLSocket(String, Int32, InetAddress, Int32)

Used only by subclasses.

SSLSocket()

Used only by subclasses.

[Android.Runtime.Register(".ctor", "()V", "")]
protected SSLSocket ();
Attributes

Remarks

Used only by subclasses. Constructs an uninitialized, unconnected TCP socket.

Java documentation for javax.net.ssl.SSLSocket.SSLSocket().

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

SSLSocket(InetAddress, Int32)

Used only by subclasses.

[Android.Runtime.Register(".ctor", "(Ljava/net/InetAddress;I)V", "")]
protected SSLSocket (Java.Net.InetAddress? address, int port);
[<Android.Runtime.Register(".ctor", "(Ljava/net/InetAddress;I)V", "")>]
new Javax.Net.Ssl.SSLSocket : Java.Net.InetAddress * int -> Javax.Net.Ssl.SSLSocket

Parameters

address
InetAddress

the server's host

port
Int32

its port

Attributes

Exceptions

if creating the socket fails.

Remarks

Used only by subclasses. Constructs a TCP connection to a server at a specified address and port. This acts as the SSL client.

If there is a security manager, its checkConnect method is called with the host address and port as its arguments. This could result in a SecurityException.

Java documentation for javax.net.ssl.SSLSocket.SSLSocket(java.net.InetAddress, int).

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

SSLSocket(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected SSLSocket (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Javax.Net.Ssl.SSLSocket : nativeint * Android.Runtime.JniHandleOwnership -> Javax.Net.Ssl.SSLSocket

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

SSLSocket(String, Int32)

Used only by subclasses.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")]
protected SSLSocket (string? host, int port);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")>]
new Javax.Net.Ssl.SSLSocket : string * int -> Javax.Net.Ssl.SSLSocket

Parameters

host
String

name of the host with which to connect, or null for the loopback address.

port
Int32

number of the server's port

Attributes

Exceptions

if creating the socket fails.

if the specified host is not known.

Remarks

Used only by subclasses. Constructs a TCP connection to a named host at a specified port. This acts as the SSL client.

If there is a security manager, its checkConnect method is called with the host address and port as its arguments. This could result in a SecurityException.

Java documentation for javax.net.ssl.SSLSocket.SSLSocket(java.lang.String, int).

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

SSLSocket(InetAddress, Int32, InetAddress, Int32)

Used only by subclasses.

[Android.Runtime.Register(".ctor", "(Ljava/net/InetAddress;ILjava/net/InetAddress;I)V", "")]
protected SSLSocket (Java.Net.InetAddress? address, int port, Java.Net.InetAddress? clientAddress, int clientPort);
[<Android.Runtime.Register(".ctor", "(Ljava/net/InetAddress;ILjava/net/InetAddress;I)V", "")>]
new Javax.Net.Ssl.SSLSocket : Java.Net.InetAddress * int * Java.Net.InetAddress * int -> Javax.Net.Ssl.SSLSocket

Parameters

address
InetAddress

the server's host

port
Int32

its port

clientAddress
InetAddress

the client's address the socket is bound to, or null for the anyLocal address.

clientPort
Int32

the client's port the socket is bound to, or zero for a system selected free port.

Attributes

Exceptions

if creating the socket fails.

Remarks

Used only by subclasses. Constructs an SSL connection to a server at a specified address and TCP port, binding the client side of the connection a given address and port. This acts as the SSL client.

If there is a security manager, its checkConnect method is called with the host address and port as its arguments. This could result in a SecurityException.

Java documentation for javax.net.ssl.SSLSocket.SSLSocket(java.net.InetAddress, int, java.net.InetAddress, int).

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

SSLSocket(String, Int32, InetAddress, Int32)

Used only by subclasses.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/net/InetAddress;I)V", "")]
protected SSLSocket (string? host, int port, Java.Net.InetAddress? clientAddress, int clientPort);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/net/InetAddress;I)V", "")>]
new Javax.Net.Ssl.SSLSocket : string * int * Java.Net.InetAddress * int -> Javax.Net.Ssl.SSLSocket

Parameters

host
String

name of the host with which to connect, or null for the loopback address.

port
Int32

number of the server's port

clientAddress
InetAddress

the client's address the socket is bound to, or null for the anyLocal address.

clientPort
Int32

the client's port the socket is bound to, or zero for a system selected free port.

Attributes

Exceptions

if creating the socket fails.

if the specified host is not known.

Remarks

Used only by subclasses. Constructs an SSL connection to a named host at a specified port, binding the client side of the connection a given address and port. This acts as the SSL client.

If there is a security manager, its checkConnect method is called with the host address and port as its arguments. This could result in a SecurityException.

Java documentation for javax.net.ssl.SSLSocket.SSLSocket(java.lang.String, int, java.net.InetAddress, int).

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