activemq-cpp-3.6.0
decaf::internal::net::ssl::openssl::OpenSSLServerSocketFactory Class Reference

SSLServerSocketFactory that creates Server Sockets that use OpenSSL. More...

#include <src/main/decaf/internal/net/ssl/openssl/OpenSSLServerSocketFactory.h>

Inheritance diagram for decaf::internal::net::ssl::openssl::OpenSSLServerSocketFactory:

Public Member Functions

 OpenSSLServerSocketFactory (OpenSSLContextSpi *parent)
virtual ~OpenSSLServerSocketFactory ()
virtual decaf::net::ServerSocketcreateServerSocket ()
 Create a new ServerSocket that is unbound.The ServerSocket will have been configured with the defaults from the factory.
Returns
new ServerSocket pointer that is owned by the caller.
Exceptions
IOExceptionif the ServerSocket cannot be created for some reason.

virtual decaf::net::ServerSocketcreateServerSocket (int port)
 Create a new ServerSocket that is bound to the given port.The ServerSocket will have been configured with the defaults from the factory.
Parameters
portThe port to bind the ServerSocket to.
Returns
new ServerSocket pointer that is owned by the caller.
Exceptions
IOExceptionif the ServerSocket cannot be created for some reason.

virtual decaf::net::ServerSocketcreateServerSocket (int port, int backlog)
 Create a new ServerSocket that is bound to the given port.The ServerSocket will have been configured with the defaults from the factory. The ServerSocket will use the specified connection backlog setting.
Parameters
portThe port to bind the ServerSocket to.
backlogThe number of pending connect request the ServerSocket can queue.
Returns
new ServerSocket pointer that is owned by the caller.
Exceptions
IOExceptionif the ServerSocket cannot be created for some reason.

virtual decaf::net::ServerSocketcreateServerSocket (int port, int backlog, const decaf::net::InetAddress *address)
 Create a new ServerSocket that is bound to the given port.The ServerSocket will have been configured with the defaults from the factory. The ServerSocket will bind to the specified interface on the local host, and accept connections only on that interface. If the address parameter is NULL than the ServerSocket will listen on all interfaces.
Parameters
portThe port to bind the ServerSocket to.
backlogThe number of pending connect request the ServerSocket can queue.
addressThe address of the interface on the local machine to bind to.
Returns
new ServerSocket pointer that is owned by the caller.
Exceptions
IOExceptionif the ServerSocket cannot be created for some reason.

virtual std::vector< std::string > 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
an STL vector containing the list of cipher suites enabled by default.
See Also
getSupportedCipherSuites()

virtual std::vector< std::string > 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.
Returns
an STL vector containing the list of supported cipher suites.
See Also
getDefaultCipherSuites()

- Public Member Functions inherited from decaf::net::ssl::SSLServerSocketFactory
virtual ~SSLServerSocketFactory ()
- Public Member Functions inherited from decaf::net::ServerSocketFactory
virtual ~ServerSocketFactory ()

Additional Inherited Members

- Static Public Member Functions inherited from decaf::net::ssl::SSLServerSocketFactory
static ServerSocketFactorygetDefault ()
 Returns the current default SSL ServerSocketFactory, the factory is returned as a pointer however the caller does not own this pointer and should not delete it.
- Protected Member Functions inherited from decaf::net::ssl::SSLServerSocketFactory
 SSLServerSocketFactory ()

Detailed Description

SSLServerSocketFactory that creates Server Sockets that use OpenSSL.

Since
1.0

Constructor & Destructor Documentation

decaf::internal::net::ssl::openssl::OpenSSLServerSocketFactory::OpenSSLServerSocketFactory ( OpenSSLContextSpi parent)
virtual decaf::internal::net::ssl::openssl::OpenSSLServerSocketFactory::~OpenSSLServerSocketFactory ( )
virtual

Member Function Documentation

virtual decaf::net::ServerSocket* decaf::internal::net::ssl::openssl::OpenSSLServerSocketFactory::createServerSocket ( )
virtual

Create a new ServerSocket that is unbound.The ServerSocket will have been configured with the defaults from the factory.

Returns
new ServerSocket pointer that is owned by the caller.
Exceptions
IOExceptionif the ServerSocket cannot be created for some reason.

Reimplemented from decaf::net::ServerSocketFactory.

virtual decaf::net::ServerSocket* decaf::internal::net::ssl::openssl::OpenSSLServerSocketFactory::createServerSocket ( int  port)
virtual

Create a new ServerSocket that is bound to the given port.The ServerSocket will have been configured with the defaults from the factory.

Parameters
portThe port to bind the ServerSocket to.
Returns
new ServerSocket pointer that is owned by the caller.
Exceptions
IOExceptionif the ServerSocket cannot be created for some reason.

Implements decaf::net::ServerSocketFactory.

virtual decaf::net::ServerSocket* decaf::internal::net::ssl::openssl::OpenSSLServerSocketFactory::createServerSocket ( int  port,
int  backlog 
)
virtual

Create a new ServerSocket that is bound to the given port.The ServerSocket will have been configured with the defaults from the factory. The ServerSocket will use the specified connection backlog setting.

Parameters
portThe port to bind the ServerSocket to.
backlogThe number of pending connect request the ServerSocket can queue.
Returns
new ServerSocket pointer that is owned by the caller.
Exceptions
IOExceptionif the ServerSocket cannot be created for some reason.

Implements decaf::net::ServerSocketFactory.

virtual decaf::net::ServerSocket* decaf::internal::net::ssl::openssl::OpenSSLServerSocketFactory::createServerSocket ( int  port,
int  backlog,
const decaf::net::InetAddress address 
)
virtual

Create a new ServerSocket that is bound to the given port.The ServerSocket will have been configured with the defaults from the factory. The ServerSocket will bind to the specified interface on the local host, and accept connections only on that interface. If the address parameter is NULL than the ServerSocket will listen on all interfaces.

Parameters
portThe port to bind the ServerSocket to.
backlogThe number of pending connect request the ServerSocket can queue.
addressThe address of the interface on the local machine to bind to.
Returns
new ServerSocket pointer that is owned by the caller.
Exceptions
IOExceptionif the ServerSocket cannot be created for some reason.

Implements decaf::net::ServerSocketFactory.

virtual std::vector<std::string> decaf::internal::net::ssl::openssl::OpenSSLServerSocketFactory::getDefaultCipherSuites ( )
virtual

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
an STL vector containing the list of cipher suites enabled by default.
See Also
getSupportedCipherSuites()

Implements decaf::net::ssl::SSLServerSocketFactory.

virtual std::vector<std::string> decaf::internal::net::ssl::openssl::OpenSSLServerSocketFactory::getSupportedCipherSuites ( )
virtual

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.

Returns
an STL vector containing the list of supported cipher suites.
See Also
getDefaultCipherSuites()

Implements decaf::net::ssl::SSLServerSocketFactory.


The documentation for this class was generated from the following file: