Package com.sun.web.security
Class SSLSocketFactory
- java.lang.Object
-
- com.sun.web.security.SSLSocketFactory
-
- All Implemented Interfaces:
ServerSocketFactory
public class SSLSocketFactory extends Object implements ServerSocketFactory
SSL server socket factory.- Author:
- Harish Prabandham, Vivek Nagar, Harpreet Singh
-
-
Constructor Summary
Constructors Constructor Description SSLSocketFactory()Create the SSL socket factory.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerSocketcreateSocket(int port)Create the socket at the specified port.ServerSocketcreateSocket(int port, int backlog)Create the socket at the specified port.ServerSocketcreateSocket(int port, int backlog, InetAddress ifAddress)Create the socket at the specified port.static voidinitStoresAtStartup()
-
-
-
Method Detail
-
createSocket
public ServerSocket createSocket(int port) throws IOException
Create the socket at the specified port.- Specified by:
createSocketin interfaceServerSocketFactory- Parameters:
port- the port number.- Returns:
- the SSL server socket.
- Throws:
IOException- input/output or network error
-
createSocket
public ServerSocket createSocket(int port, int backlog) throws IOException
Create the socket at the specified port.- Specified by:
createSocketin interfaceServerSocketFactory- Parameters:
port- the port number.backlog- how many connections are queued- Returns:
- the SSL server socket.
- Throws:
IOException- input/output or network error
-
createSocket
public ServerSocket createSocket(int port, int backlog, InetAddress ifAddress) throws IOException
Create the socket at the specified port.- Specified by:
createSocketin interfaceServerSocketFactory- Parameters:
port- the port number.backlog- how many connections are queuedifAddress- the network interface address to use- Returns:
- the SSL server socket.
- Throws:
IOException- input/output or network error
-
-