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:
Inheritance graph
[legend]

Public Member Functions

 OpenSSLContextSpi ()
virtual ~OpenSSLContextSpi ()
virtual void providerInit (security::SecureRandom *random)
 Perform the initialization of this Context.
Parameters:
random Pointer to an instance of a secure random number generator.
Exceptions:
NullPointerException if the SecureRandom instance is NULL.
KeyManagementException if 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:
IllegalStateException if 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:
IllegalStateException if the SSLContextSpi object requires initialization but has not been initialized yet.

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:
IllegalStateException if 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:
IllegalStateException if 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:
random Pointer to an instance of a secure random number generator.
Exceptions:
NullPointerException if the SecureRandom instance is NULL.
KeyManagementException if 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:

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1