SSLServerSocket based on OpenSSL library code. More...
#include <src/main/decaf/internal/net/ssl/openssl/OpenSSLServerSocket.h>

Public Member Functions | ||||||||||
| OpenSSLServerSocket (OpenSSLParameters *parameters) | ||||||||||
| virtual | ~OpenSSLServerSocket () | |||||||||
| virtual std::vector< std::string > | getSupportedCipherSuites () const | |||||||||
Gets a vector containing the names of all the cipher suites that are supported by this SSLServerSocket.Normally not all of these cipher suites will be enabled on the Socket.
| ||||||||||
| virtual std::vector< std::string > | getSupportedProtocols () const | |||||||||
Gets a vector containing the names of all the protocols that could be enabled for this SSLServerSocket instance.
| ||||||||||
| virtual std::vector< std::string > | getEnabledCipherSuites () const | |||||||||
Returns a vector containing the names of all the currently enabled Cipher Suites for this SSLServerSocket.
| ||||||||||
| virtual void | setEnabledCipherSuites (const std::vector< std::string > &suites) | |||||||||
Sets the Cipher Suites that are to be enabled on the SSLServerSocket connection.Each of the named Cipher Suites must appear in the list of supported cipher suites for this connection or an exception will be thrown.
| ||||||||||
| virtual std::vector< std::string > | getEnabledProtocols () const | |||||||||
Returns a vector containing the names of all the currently enabled Protocols for this SSLServerSocket.
| ||||||||||
| virtual void | setEnabledProtocols (const std::vector< std::string > &protocols) | |||||||||
Sets the Protocols that are to be enabled on the SSLServerSocket connection.Each of the named Protocols must appear in the list of supported protocols suites for this connection or an exception will be thrown.
| ||||||||||
| virtual bool | getWantClientAuth () const | |||||||||
| ||||||||||
| virtual void | setWantClientAuth (bool value) | |||||||||
Sets whether or not this Socket will request Client Authentication.If set to true the Socket (when used in server mode) will request that the client authenticate itself, if the client doesn't send authentication the socket will still allow negotiation to continue.
| ||||||||||
| virtual bool | getNeedClientAuth () const | |||||||||
| ||||||||||
| virtual void | setNeedClientAuth (bool value) | |||||||||
Sets whether or not this Socket will require Client Authentication.If set to true the Socket (when used in server mode) will require that the client authenticate itself, if the client doesn't send authentication the socket will not allow negotiation to continue.
| ||||||||||
| virtual decaf::net::Socket * | accept () | |||||||||
Listens for a connection request on the bound IPAddress and Port for this ServerSocket, the caller blocks until a connection is made.If the SO_TIMEOUT option is set this method could throw a SocketTimeoutException if the operation times out.
| ||||||||||
SSLServerSocket based on OpenSSL library code.
| decaf::internal::net::ssl::openssl::OpenSSLServerSocket::OpenSSLServerSocket | ( | OpenSSLParameters * | parameters | ) |
| virtual decaf::internal::net::ssl::openssl::OpenSSLServerSocket::~OpenSSLServerSocket | ( | ) | [virtual] |
| virtual decaf::net::Socket* decaf::internal::net::ssl::openssl::OpenSSLServerSocket::accept | ( | ) | [virtual] |
Listens for a connection request on the bound IPAddress and Port for this ServerSocket, the caller blocks until a connection is made.If the SO_TIMEOUT option is set this method could throw a SocketTimeoutException if the operation times out.
| IOException | if an I/O error occurs while binding the socket. | |
| SocketException | if an error occurs while blocking on the accept call. | |
| SocketTimeoutException | if the SO_TIMEOUT option was used and the accept timed out. |
Reimplemented from decaf::net::ServerSocket.
| virtual std::vector<std::string> decaf::internal::net::ssl::openssl::OpenSSLServerSocket::getEnabledCipherSuites | ( | ) | const [virtual] |
Returns a vector containing the names of all the currently enabled Cipher Suites for this SSLServerSocket.
Implements decaf::net::ssl::SSLServerSocket.
| virtual std::vector<std::string> decaf::internal::net::ssl::openssl::OpenSSLServerSocket::getEnabledProtocols | ( | ) | const [virtual] |
Returns a vector containing the names of all the currently enabled Protocols for this SSLServerSocket.
Implements decaf::net::ssl::SSLServerSocket.
| virtual bool decaf::internal::net::ssl::openssl::OpenSSLServerSocket::getNeedClientAuth | ( | ) | const [virtual] |
Implements decaf::net::ssl::SSLServerSocket.
| virtual std::vector<std::string> decaf::internal::net::ssl::openssl::OpenSSLServerSocket::getSupportedCipherSuites | ( | ) | const [virtual] |
Gets a vector containing the names of all the cipher suites that are supported by this SSLServerSocket.Normally not all of these cipher suites will be enabled on the Socket.
Implements decaf::net::ssl::SSLServerSocket.
| virtual std::vector<std::string> decaf::internal::net::ssl::openssl::OpenSSLServerSocket::getSupportedProtocols | ( | ) | const [virtual] |
Gets a vector containing the names of all the protocols that could be enabled for this SSLServerSocket instance.
Implements decaf::net::ssl::SSLServerSocket.
| virtual bool decaf::internal::net::ssl::openssl::OpenSSLServerSocket::getWantClientAuth | ( | ) | const [virtual] |
Implements decaf::net::ssl::SSLServerSocket.
| virtual void decaf::internal::net::ssl::openssl::OpenSSLServerSocket::setEnabledCipherSuites | ( | const std::vector< std::string > & | suites | ) | [virtual] |
Sets the Cipher Suites that are to be enabled on the SSLServerSocket connection.Each of the named Cipher Suites must appear in the list of supported cipher suites for this connection or an exception will be thrown.
| suites | An Vector of names for all the Cipher Suites that are to be enabled. |
| IllegalArgumentException | if the vector is empty or one of the names is invalid. |
Implements decaf::net::ssl::SSLServerSocket.
| virtual void decaf::internal::net::ssl::openssl::OpenSSLServerSocket::setEnabledProtocols | ( | const std::vector< std::string > & | protocols | ) | [virtual] |
Sets the Protocols that are to be enabled on the SSLServerSocket connection.Each of the named Protocols must appear in the list of supported protocols suites for this connection or an exception will be thrown.
| protocols | An Vector of names for all the Protocols that are to be enabled. |
| IllegalArgumentException | if the vector is empty or one of the names is invalid. |
Implements decaf::net::ssl::SSLServerSocket.
| virtual void decaf::internal::net::ssl::openssl::OpenSSLServerSocket::setNeedClientAuth | ( | bool | value | ) | [virtual] |
Sets whether or not this Socket will require Client Authentication.If set to true the Socket (when used in server mode) will require that the client authenticate itself, if the client doesn't send authentication the socket will not allow negotiation to continue.
| value | Whether the server socket should require client authentication. |
Implements decaf::net::ssl::SSLServerSocket.
| virtual void decaf::internal::net::ssl::openssl::OpenSSLServerSocket::setWantClientAuth | ( | bool | value | ) | [virtual] |
Sets whether or not this Socket will request Client Authentication.If set to true the Socket (when used in server mode) will request that the client authenticate itself, if the client doesn't send authentication the socket will still allow negotiation to continue.
| value | Whether the server socket should request client authentication. |
Implements decaf::net::ssl::SSLServerSocket.
1.6.1