Factory class interface for a SocketFactory that can create SSLSocket objects.
More...
#include <src/main/decaf/net/ssl/SSLSocketFactory.h>
|
virtual | ~SSLSocketFactory () |
|
virtual std::vector< std::string > | getDefaultCipherSuites ()=0 |
| Returns the list of cipher suites which are enabled by default. More...
|
|
virtual std::vector< std::string > | getSupportedCipherSuites ()=0 |
| Returns the names of the cipher suites which could be enabled for use on an SSL connection. More...
|
|
virtual Socket * | createSocket (Socket *socket, std::string host, int port, bool autoClose)=0 |
| Returns a socket layered over an existing socket connected to the named host, at the given port. More...
|
|
virtual | ~SocketFactory () |
|
virtual Socket * | createSocket () |
| Creates an unconnected Socket object. More...
|
|
virtual Socket * | createSocket (const InetAddress *host, int port)=0 |
| Creates a new Socket object and connects it to the specified remote host and port using the configuration of this SocketFactory. More...
|
|
virtual Socket * | createSocket (const InetAddress *host, int port, const InetAddress *ifAddress, int localPort)=0 |
| Creates a new Socket object and connects it to the specified remote host and port using the configuration of this SocketFactory. More...
|
|
virtual Socket * | createSocket (const std::string &host, int port)=0 |
| Creates a new Socket object and connects it to the specified remote host and port using the configuration of this SocketFactory. More...
|
|
virtual Socket * | createSocket (const std::string &host, int port, const InetAddress *ifAddress, int localPort)=0 |
| Creates a new Socket object and connects it to the specified remote host and port using the configuration of this SocketFactory. More...
|
|
Factory class interface for a SocketFactory that can create SSLSocket objects.
- Since
- 1.0
decaf::net::ssl::SSLSocketFactory::SSLSocketFactory |
( |
| ) |
|
|
protected |
virtual decaf::net::ssl::SSLSocketFactory::~SSLSocketFactory |
( |
| ) |
|
|
virtual |
virtual Socket* decaf::net::ssl::SSLSocketFactory::createSocket |
( |
Socket * |
socket, |
|
|
std::string |
host, |
|
|
int |
port, |
|
|
bool |
autoClose |
|
) |
| |
|
pure virtual |
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.
- Parameters
-
socket | The existing socket to layer over. |
host | The server host the original Socket is connected to. |
port | The server port the original Socket is connected to. |
autoClose | Should the layered over Socket be closed when the topmost socket is closed. |
- Returns
- a new Socket instance that wraps the given Socket.
- Exceptions
-
IOException | if an I/O exception occurs while performing this operation. |
UnknownHostException | if the host is unknown. |
Implemented in decaf::internal::net::ssl::openssl::OpenSSLSocketFactory, and decaf::internal::net::ssl::DefaultSSLSocketFactory.
static SocketFactory* decaf::net::ssl::SSLSocketFactory::getDefault |
( |
| ) |
|
|
static |
virtual std::vector<std::string> decaf::net::ssl::SSLSocketFactory::getDefaultCipherSuites |
( |
| ) |
|
|
pure virtual |
virtual std::vector<std::string> decaf::net::ssl::SSLSocketFactory::getSupportedCipherSuites |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: