activemq-cpp-3.9.0
|
Represents on implementation of the Secure Socket Layer for streaming based sockets. More...
#include <src/main/decaf/net/ssl/SSLContext.h>
Public Member Functions | |
SSLContext (SSLContextSpi *contextImpl) | |
virtual | ~SSLContext () |
SocketFactory * | getSocketFactory () |
Returns an SocketFactory instance for use with this Context, the SocketFactory is owned by the Context and should not be deleted by the caller. More... | |
ServerSocketFactory * | getServerSocketFactory () |
Returns an ServerSocketFactory instance for use with this Context, the ServerSocketFactory is owned by the Context and should not be deleted by the caller. More... | |
SSLParameters * | getDefaultSSLParameters () |
SSLParameters * | getSupportedSSLParameters () |
Static Public Member Functions | |
static SSLContext * | getDefault () |
Gets the Default SSLContext. More... | |
static void | setDefault (SSLContext *context) |
Sets the default SSLContext to be returned from future calls to getDefault. More... | |
Represents on implementation of the Secure Socket Layer for streaming based sockets.
This class servers a a source of factories to be used to create new SSL Socket instances.
decaf::net::ssl::SSLContext::SSLContext | ( | SSLContextSpi * | contextImpl | ) |
|
virtual |
|
static |
Gets the Default SSLContext.
The default instance of the SSLContext should be immediately usable without any need for the client to initialize this context.
SSLParameters* decaf::net::ssl::SSLContext::getDefaultSSLParameters | ( | ) |
UnsupportedOperationException | if the parameters cannot be retrieved. |
ServerSocketFactory* decaf::net::ssl::SSLContext::getServerSocketFactory | ( | ) |
Returns an ServerSocketFactory instance for use with this Context, the ServerSocketFactory is owned by the Context and should not be deleted by the caller.
IllegalStateException | if the SSLContextSpi requires initialization but it has not yet been initialized. |
SocketFactory* decaf::net::ssl::SSLContext::getSocketFactory | ( | ) |
Returns an SocketFactory instance for use with this Context, the SocketFactory is owned by the Context and should not be deleted by the caller.
IllegalStateException | if the SSLContextSpi requires initialization but it has not yet been initialized. |
SSLParameters* decaf::net::ssl::SSLContext::getSupportedSSLParameters | ( | ) |
UnsupportedOperationException | if the parameters cannot be retrieved. |
|
static |
Sets the default SSLContext to be returned from future calls to getDefault.
The set SSLContext must be fully initialized and usable. The caller is responsible for deleting this object before the Library shutdown methods are called.
NullPointerException | if the context passed is NULL. |