activemq-cpp-3.3.0

decaf::net::ssl::SSLContextSpi Class Reference

Defines the interface that should be provided by an SSLContext provider. More...

#include <src/main/decaf/net/ssl/SSLContextSpi.h>

Inheritance diagram for decaf::net::ssl::SSLContextSpi:

Public Member Functions

virtual ~SSLContextSpi ()
virtual void providerInit (security::SecureRandom *random)=0
 Perform the initialization of this Context.
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.
virtual SocketFactoryproviderGetSocketFactory ()=0
 Returns a SocketFactory instance that can be used to create new SSLSocket objects.
virtual ServerSocketFactoryproviderGetServerSocketFactory ()=0
 Returns a ServerSocketFactory instance that can be used to create new SSLServerSocket objects.

Detailed Description

Defines the interface that should be provided by an SSLContext provider.

Since:
1.0

Constructor & Destructor Documentation

virtual decaf::net::ssl::SSLContextSpi::~SSLContextSpi ( ) [virtual]

Member Function Documentation

virtual SSLParameters* decaf::net::ssl::SSLContextSpi::providerGetDefaultSSLParameters ( ) [virtual]

Creates a returns a new SSLParameters instance that contains the default settings for this Providers SSLContext.

The returned SSLParameters instance is requires to have non-empty values in its ciphersuites and protocols.

Returns:
new SSLParameters instance with the SSLContext defaults.
Exceptions:
UnsupportedOperationExceptionif the defaults cannot be obtained.
virtual ServerSocketFactory* decaf::net::ssl::SSLContextSpi::providerGetServerSocketFactory ( ) [pure 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.

Implemented in decaf::internal::net::ssl::openssl::OpenSSLContextSpi.

virtual SocketFactory* decaf::net::ssl::SSLContextSpi::providerGetSocketFactory ( ) [pure 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.

Implemented in decaf::internal::net::ssl::openssl::OpenSSLContextSpi.

virtual SSLParameters* decaf::net::ssl::SSLContextSpi::providerGetSupportedSSLParameters ( ) [virtual]

Creates and returns a new SSLParameters instance that contains the full set of supported parameters for this SSL Context.

The returned SSLParameters instance is requires to have non-empty values in its ciphersuites and protocols.

Returns:
a new SSLParameters instance with the full set of settings that are supported.
Exceptions:
UnsupportedOperationExceptionif the supported parameters cannot be obtained.
virtual void decaf::net::ssl::SSLContextSpi::providerInit ( security::SecureRandom random) [pure 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.

Implemented in decaf::internal::net::ssl::openssl::OpenSSLContextSpi.


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