# SSLServerSocketFactory

public abstract class **SSLServerSocketFactory** extends [ServerSocketFactory](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ServerSocketFactory.html)  
`SSLServerSocketFactory`s create
`SSLServerSocket`s.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/SSLSocket.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/SSLServerSocket.html`

### Protected Constructor Summary

|---|---|
|   | [SSLServerSocketFactory](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/SSLServerSocketFactory.html#SSLServerSocketFactory())() Constructor is used only by subclasses. |

### Public Method Summary

|---|---|
| synchronized static [ServerSocketFactory](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ServerSocketFactory.html) | [getDefault](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/SSLServerSocketFactory.html#getDefault())() Returns the default SSL server socket factory. |
| abstract [String\[\]](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getDefaultCipherSuites](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/SSLServerSocketFactory.html#getDefaultCipherSuites())() Returns the list of cipher suites which are enabled by default. |
| abstract [String\[\]](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [getSupportedCipherSuites](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/SSLServerSocketFactory.html#getSupportedCipherSuites())() Returns the names of the cipher suites which could be enabled for use on an SSL connection created by this factory. |

### Inherited Method Summary

From class [javax.net.ServerSocketFactory](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ServerSocketFactory.html)

|---|---|
| abstract [ServerSocket](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/ServerSocket.html) | [createServerSocket](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ServerSocketFactory.html#createServerSocket(int))(int port) Returns a server socket bound to the specified port. |
| [ServerSocket](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/ServerSocket.html) | [createServerSocket](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ServerSocketFactory.html#createServerSocket())() Returns an unbound server socket. |
| abstract [ServerSocket](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/ServerSocket.html) | [createServerSocket](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ServerSocketFactory.html#createServerSocket(int,%20int,%20java.net.InetAddress))(int port, int backlog, [InetAddress](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/InetAddress.html) ifAddress) Returns a server socket bound to the specified port, with a specified listen backlog and local IP. |
| abstract [ServerSocket](https://developers.google.com/j2objc/javadoc/jre/reference/java/net/ServerSocket.html) | [createServerSocket](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ServerSocketFactory.html#createServerSocket(int,%20int))(int port, int backlog) Returns a server socket bound to the specified port, and uses the specified connection backlog. |
| static [ServerSocketFactory](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ServerSocketFactory.html) | [getDefault](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ServerSocketFactory.html#getDefault())() Returns a copy of the environment's default socket factory. |

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

## Protected Constructors

#### protected
**SSLServerSocketFactory**
()

Constructor is used only by subclasses.

## Public Methods

#### public static synchronized [ServerSocketFactory](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ServerSocketFactory.html)
**getDefault**
()

Returns the default SSL server socket factory.

The first time this method is called, the security property
"ssl.ServerSocketFactory.provider" is examined. If it is non-null, a
class by that name is loaded and instantiated. If that is successful and
the object is an instance of SSLServerSocketFactory, it is made the
default SSL server socket factory.

Otherwise, this method returns
`SSLContext.getDefault().getServerSocketFactory()`. If that
call fails, an inoperative factory is returned.

##### Returns

- the default `ServerSocketFactory`

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/SSLContext.html#getDefault()`

#### public abstract [String\[\]](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**getDefaultCipherSuites**
()

Returns the list of cipher suites which are enabled by default.
Unless a different list is enabled, handshaking on an SSL connection
will use one of these cipher suites. The minimum quality of service
for these defaults requires confidentiality protection and server
authentication (that is, no anonymous cipher suites).

##### Returns

- array of the cipher suites enabled by default

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/SSLServerSocketFactory.html#getSupportedCipherSuites()`

#### public abstract [String\[\]](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**getSupportedCipherSuites**
()

Returns the names of the cipher suites which could be enabled for use
on an SSL connection created by this factory.
Normally, only a subset of these will actually
be enabled by default, since this list may include cipher suites which
do not meet quality of service requirements for those defaults. Such
cipher suites are useful in specialized applications.

##### Returns

- an array of cipher suite names

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/SSLServerSocketFactory.html#getDefaultCipherSuites()`