다음을 통해 공유


SSLServerSocket Class

Definition

This class extends ServerSockets and provides secure server sockets using protocols such as the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocols.

[Android.Runtime.Register("javax/net/ssl/SSLServerSocket", DoNotGenerateAcw=true)]
public abstract class SSLServerSocket : Java.Net.ServerSocket
[<Android.Runtime.Register("javax/net/ssl/SSLServerSocket", DoNotGenerateAcw=true)>]
type SSLServerSocket = class
    inherit ServerSocket
Inheritance
SSLServerSocket
Attributes

Remarks

This class extends ServerSockets and provides secure server sockets using protocols such as the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocols.

Instances of this class are generally created using a SSLServerSocketFactory. The primary function of SSLServerSockets is to create SSLSockets by accepting connections.

SSLServerSockets contain several pieces of state data which are inherited by the SSLSocket at socket creation. These include the enabled cipher suites and protocols, whether client authentication is necessary, and whether created sockets should begin handshaking in client or server mode. The state inherited by the created SSLSocket can be overriden by calling the appropriate methods.

Added in 1.4.

Java documentation for javax.net.ssl.SSLServerSocket.

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.

Constructors

SSLServerSocket()

Used only by subclasses.

SSLServerSocket(Int32, Int32, InetAddress)

Used only by subclasses.

SSLServerSocket(Int32, Int32)

Used only by subclasses.

SSLServerSocket(Int32)

Used only by subclasses.

SSLServerSocket(IntPtr, JniHandleOwnership)

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

Properties

Channel

Returns the unique java.nio.channels.ServerSocketChannel object associated with this socket, if any.

(Inherited from ServerSocket)
Class

Returns the runtime class of this Object.

(Inherited from Object)
EnableSessionCreation

Returns whether new SSL sessions may be established for new connections.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
InetAddress

Returns the local address of this server socket.

(Inherited from ServerSocket)
IsBound

Returns the binding state of the ServerSocket.

(Inherited from ServerSocket)
IsClosed

Returns the closed state of the ServerSocket.

(Inherited from ServerSocket)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
LocalPort

Returns the port number on which this socket is listening.

(Inherited from ServerSocket)
LocalSocketAddress

Returns the address of the endpoint this socket is bound to.

(Inherited from ServerSocket)
NeedClientAuth

Returns whether server-mode connections will be configured to require client authentication.

PeerReference (Inherited from Object)
ReceiveBufferSize

Gets the value of the SocketOptions#SO_RCVBUF SO_RCVBUF option for this ServerSocket, that is the proposed buffer size that will be used for Sockets accepted from this ServerSocket. -or- Sets a default proposed value for the SocketOptions#SO_RCVBUF SO_RCVBUF option for sockets accepted from this ServerSocket.

(Inherited from ServerSocket)
ReuseAddress

Tests if SocketOptions#SO_REUSEADDR SO_REUSEADDR is enabled. -or- Enable/disable the SocketOptions#SO_REUSEADDR SO_REUSEADDR socket option.

(Inherited from ServerSocket)
SoTimeout

Retrieve setting for SocketOptions#SO_TIMEOUT SO_TIMEOUT. -or- Enable/disable SocketOptions#SO_TIMEOUT SO_TIMEOUT with the specified timeout, in milliseconds.

(Inherited from ServerSocket)
SSLParameters

Returns the SSLParameters in effect for newly accepted connections. -or- Applies SSLParameters to newly accepted connections.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

UseClientMode

Returns whether new connection will act in client mode when handshaking.

WantClientAuth

Returns whether server-mode connections will be configured to request client authentication.

Methods

Accept()

Listens for a connection to be made to this socket and accepts it.

(Inherited from ServerSocket)
AcceptAsync() (Inherited from ServerSocket)
Bind(SocketAddress, Int32)

Binds the ServerSocket to a specific address (IP address and port number).

(Inherited from ServerSocket)
Bind(SocketAddress)

Binds the ServerSocket to a specific address (IP address and port number).

(Inherited from ServerSocket)
Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Close()

Closes this socket.

(Inherited from ServerSocket)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetEnabledCipherSuites()

Returns the list of cipher suites which are currently enabled for use by newly accepted connections.

GetEnabledProtocols()

Returns the names of the protocols which are currently enabled for use by the newly accepted connections.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetOption(ISocketOption)

Returns the value of a socket option.

(Inherited from ServerSocket)
GetSupportedCipherSuites()

Returns the names of the cipher suites which could be enabled for use on an SSL connection.

GetSupportedProtocols()

Returns the names of the protocols which could be enabled for use.

ImplAccept(Socket)

Subclasses of ServerSocket use this method to override accept() to return their own subclass of socket.

(Inherited from ServerSocket)
ImplAcceptAsync(Socket) (Inherited from ServerSocket)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetEnabledCipherSuites(String[])

Sets the cipher suites enabled for use by accepted connections.

SetEnabledProtocols(String[])

Controls which particular protocols are enabled for use by accepted connections.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetOption(ISocketOption, Object)

Sets the value of a socket option.

(Inherited from ServerSocket)
SetPerformancePreferences(Int32, Int32, Int32)

Sets performance preferences for this ServerSocket.

(Inherited from ServerSocket)
SupportedOptions()

Returns a set of the socket options supported by this server socket.

(Inherited from ServerSocket)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to