APIdia Launch Partner
Top Fields Constructors Methods
javax.net.ssl

pack-priv Class DefaultSSLSocketFactory

Located in compilation unit of javax.net.ssl.SSLSocketFactory.

extends SSLSocketFactory
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Exception
Inherited from javax.net.ssl.SSLSocketFactory:
DEBUG

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Socket
createSocket()

Overrides javax.net.SocketFactory.createSocket.

Creates an unconnected socket.

public Socket
createSocket(String host, int port)

Implements abstract javax.net.SocketFactory.createSocket.

Creates a socket and connects it to the specified remote host at the specified remote port.

public Socket
createSocket(Socket s, String host, int port, boolean autoClose)

Implements abstract javax.net.ssl.SSLSocketFactory.createSocket.

Returns a socket layered over an existing socket connected to the named host, at the given port.

public Socket
createSocket(InetAddress address, int port)

Implements abstract javax.net.SocketFactory.createSocket.

Creates a socket and connects it to the specified port number at the specified address.

public Socket
createSocket(String host, int port, InetAddress clientAddress, int clientPort)

Implements abstract javax.net.SocketFactory.createSocket.

Creates a socket and connects it to the specified remote host on the specified remote port.

public Socket
createSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort)

Implements abstract javax.net.SocketFactory.createSocket.

Creates a socket and connect it to the specified remote address on the specified remote port.

public String[]
getDefaultCipherSuites()

Implements abstract javax.net.ssl.SSLSocketFactory.getDefaultCipherSuites.

Returns the list of cipher suites which are enabled by default.

public String[]
getSupportedCipherSuites()

Implements abstract javax.net.ssl.SSLSocketFactory.getSupportedCipherSuites.

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

private Socket
Inherited from javax.net.ssl.SSLSocketFactory:
createSocketgetDefaultgetSecurityProperty

Field Detail

reasonback to summary
private final Exception reason

Constructor Detail

DefaultSSLSocketFactoryback to summary
pack-priv DefaultSSLSocketFactory(Exception reason)

Method Detail

createSocketback to summary
public Socket createSocket() throws IOException

Overrides javax.net.SocketFactory.createSocket.

Doc from javax.net.SocketFactory.createSocket.

Creates an unconnected socket.

Annotations
@Override
Exceptions
IOException:
if the socket cannot be created
createSocketback to summary
public Socket createSocket(String host, int port) throws IOException

Implements abstract javax.net.SocketFactory.createSocket.

Doc from javax.net.SocketFactory.createSocket.

Creates a socket and connects it to the specified remote host at the specified remote port. This socket is configured using the socket options established for this factory.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs when creating the socket
createSocketback to summary
public Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException

Implements abstract javax.net.ssl.SSLSocketFactory.createSocket.

Doc from javax.net.ssl.SSLSocketFactory.createSocket.

Returns a socket layered over an existing socket connected to the named host, at the given port. This constructor can be used when tunneling SSL through a proxy or when negotiating the use of SSL over an existing socket. The host and port refer to the logical peer destination. This socket is configured using the socket options established for this factory.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs when creating the socket
createSocketback to summary
public Socket createSocket(InetAddress address, int port) throws IOException

Implements abstract javax.net.SocketFactory.createSocket.

Doc from javax.net.SocketFactory.createSocket.

Creates a socket and connects it to the specified port number at the specified address. This socket is configured using the socket options established for this factory.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs when creating the socket
createSocketback to summary
public Socket createSocket(String host, int port, InetAddress clientAddress, int clientPort) throws IOException

Implements abstract javax.net.SocketFactory.createSocket.

Doc from javax.net.SocketFactory.createSocket.

Creates a socket and connects it to the specified remote host on the specified remote port. The socket will also be bound to the local address and port supplied. This socket is configured using the socket options established for this factory.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs when creating the socket
createSocketback to summary
public Socket createSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort) throws IOException

Implements abstract javax.net.SocketFactory.createSocket.

Doc from javax.net.SocketFactory.createSocket.

Creates a socket and connect it to the specified remote address on the specified remote port. The socket will also be bound to the local address and port supplied. The socket is configured using the socket options established for this factory.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs when creating the socket
getDefaultCipherSuitesback to summary
public String[] getDefaultCipherSuites()

Implements abstract javax.net.ssl.SSLSocketFactory.getDefaultCipherSuites.

Doc from javax.net.ssl.SSLSocketFactory.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).

The returned array includes cipher suites from the list of standard cipher suite names in the JSSE Cipher Suite Names section of the Java Security Standard Algorithm Names Specification, and may also include other cipher suites that the provider supports.

Annotations
@Override
getSupportedCipherSuitesback to summary
public String[] getSupportedCipherSuites()

Implements abstract javax.net.ssl.SSLSocketFactory.getSupportedCipherSuites.

Doc from javax.net.ssl.SSLSocketFactory.getSupportedCipherSuites.

Returns the names of the cipher suites which could be enabled for use on an SSL connection. 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.

The returned array includes cipher suites from the list of standard cipher suite names in the JSSE Cipher Suite Names section of the Java Security Standard Algorithm Names Specification, and may also include other cipher suites that the provider supports.

Annotations
@Override
throwExceptionback to summary
private Socket throwException() throws SocketException