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

Provides an SSLContext that wraps the OpenSSL API. More...

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

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

Public Member Functions

 OpenSSLContextSpi ()
virtual ~OpenSSLContextSpi ()
virtual void providerInit (security::SecureRandom *random)
 Perform the initialization of this Context.
Parameters
randomPointer to an instance of a secure random number generator.
Exceptions
NullPointerExceptionif the SecureRandom instance is NULL.
KeyManagementExceptionif an error occurs while initializing the context.

virtual decaf::net::SocketFactoryproviderGetSocketFactory ()
 Returns a SocketFactory instance that can be used to create new SSLSocket objects.The SocketFactory is owned by the Service Provider and should not be destroyed by the caller.
Returns
SocketFactory instance that can be used to create new SSLSockets.
Exceptions
IllegalStateExceptionif the SSLContextSpi object requires initialization but has not been initialized yet.

virtual
decaf::net::ServerSocketFactory
providerGetServerSocketFactory ()
 Returns a ServerSocketFactory instance that can be used to create new SSLServerSocket objects.The ServerSocketFactory is owned by the Service Provider and should not be destroyed by the caller.
Returns
SocketFactory instance that can be used to create new SSLServerSockets.
Exceptions
IllegalStateExceptionif the SSLContextSpi object requires initialization but has not been initialized yet.

- Public Member Functions inherited from decaf::net::ssl::SSLContextSpi
virtual ~SSLContextSpi ()
virtual SSLParametersproviderGetDefaultSSLParameters ()
 Creates a returns a new SSLParameters instance that contains the default settings for this Providers SSLContext.
virtual SSLParametersproviderGetSupportedSSLParameters ()
 Creates and returns a new SSLParameters instance that contains the full set of supported parameters for this SSL Context.

Friends

class OpenSSLSocket
class OpenSSLSocketFactory

Detailed Description

Provides an SSLContext that wraps the OpenSSL API.

Since
1.0

Constructor & Destructor Documentation

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

Member Function Documentation

virtual decaf::net::ServerSocketFactory* decaf::internal::net::ssl::openssl::OpenSSLContextSpi::providerGetServerSocketFactory ( )
virtual

Returns a ServerSocketFactory instance that can be used to create new SSLServerSocket objects.The ServerSocketFactory is owned by the Service Provider and should not be destroyed by the caller.

Returns
SocketFactory instance that can be used to create new SSLServerSockets.
Exceptions
IllegalStateExceptionif the SSLContextSpi object requires initialization but has not been initialized yet.

Implements decaf::net::ssl::SSLContextSpi.

virtual decaf::net::SocketFactory* decaf::internal::net::ssl::openssl::OpenSSLContextSpi::providerGetSocketFactory ( )
virtual

Returns a SocketFactory instance that can be used to create new SSLSocket objects.The SocketFactory is owned by the Service Provider and should not be destroyed by the caller.

Returns
SocketFactory instance that can be used to create new SSLSockets.
Exceptions
IllegalStateExceptionif the SSLContextSpi object requires initialization but has not been initialized yet.

Implements decaf::net::ssl::SSLContextSpi.

virtual void decaf::internal::net::ssl::openssl::OpenSSLContextSpi::providerInit ( security::SecureRandom random)
virtual

Perform the initialization of this Context.

Parameters
randomPointer to an instance of a secure random number generator.
Exceptions
NullPointerExceptionif the SecureRandom instance is NULL.
KeyManagementExceptionif an error occurs while initializing the context.

Implements decaf::net::ssl::SSLContextSpi.

Friends And Related Function Documentation

friend class OpenSSLSocket
friend
friend class OpenSSLSocketFactory
friend

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