activemq-cpp-3.9.0
decaf::net::ssl::SSLParameters Class Reference

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

Public Member Functions

 SSLParameters ()
 Creates a new SSLParameters instance with empty vectors for the protocols and the cipherSuites, the wantClientAuth and needClientAuth flags are set to false. More...
 
 SSLParameters (const std::vector< std::string > &cipherSuites)
 Creates a new SSLParameters instance with the given cipherSuites value, the protocols vector is empty and the wantClientAuth and needClientAuth flags are set to false. More...
 
 SSLParameters (const std::vector< std::string > &cipherSuites, const std::vector< std::string > &protocols)
 Creates a new SSLParameters instance with the given cipherSuites value and protocols value, the wantClientAuth and needClientAuth flags are set to false. More...
 
virtual ~SSLParameters ()
 
std::vector< std::string > getCipherSuites () const
 
void setCipherSuites (const std::vector< std::string > &cipherSuites)
 Sets the vector of ciphersuites. More...
 
std::vector< std::string > getProtocols () const
 
void setProtocols (const std::vector< std::string > &protocols)
 Sets the vector of protocols. More...
 
bool getWantClientAuth () const
 
void setWantClientAuth (bool wantClientAuth)
 Sets whether client authentication should be requested. More...
 
bool getNeedClientAuth () const
 
void setNeedClientAuth (bool needClientAuth)
 Sets whether client authentication should be required. More...
 
void setServerNames (const std::vector< std::string > &serverNames)
 Sets the Server Names that this client wants to encode for use during the SSL Handshaking phase. More...
 
std::vector< std::string > getServerNames () const
 Gets the currently set list of server names used. More...
 

Constructor & Destructor Documentation

decaf::net::ssl::SSLParameters::SSLParameters ( )

Creates a new SSLParameters instance with empty vectors for the protocols and the cipherSuites, the wantClientAuth and needClientAuth flags are set to false.

decaf::net::ssl::SSLParameters::SSLParameters ( const std::vector< std::string > &  cipherSuites)

Creates a new SSLParameters instance with the given cipherSuites value, the protocols vector is empty and the wantClientAuth and needClientAuth flags are set to false.

Parameters
cipherSuitesThe vector of cipherSuites for this SSLParameters instance (can be empty).
decaf::net::ssl::SSLParameters::SSLParameters ( const std::vector< std::string > &  cipherSuites,
const std::vector< std::string > &  protocols 
)

Creates a new SSLParameters instance with the given cipherSuites value and protocols value, the wantClientAuth and needClientAuth flags are set to false.

Parameters
cipherSuitesThe vector of cipherSuites for this SSLParameters instance (can be empty).
protocolsThe vector of protocols for this SSLParameters instance (can be empty).
virtual decaf::net::ssl::SSLParameters::~SSLParameters ( )
virtual

Member Function Documentation

std::vector<std::string> decaf::net::ssl::SSLParameters::getCipherSuites ( ) const
inline
Returns
a copy of the vector of ciphersuites or an empty vector if none have been set.
bool decaf::net::ssl::SSLParameters::getNeedClientAuth ( ) const
inline
Returns
whether client authentication should be required.
std::vector<std::string> decaf::net::ssl::SSLParameters::getProtocols ( ) const
inline
Returns
a copy of the vector of protocols or an empty vector if none have been set.
std::vector<std::string> decaf::net::ssl::SSLParameters::getServerNames ( ) const
inline

Gets the currently set list of server names used.

This method returns a copy of the list so that it cannot be modified. If updates are needed a new list must be set via {setServerNames}.

Returns
a list of server names if any were previously configured.
bool decaf::net::ssl::SSLParameters::getWantClientAuth ( ) const
inline
Returns
whether client authentication should be requested.
void decaf::net::ssl::SSLParameters::setCipherSuites ( const std::vector< std::string > &  cipherSuites)
inline

Sets the vector of ciphersuites.

Parameters
cipherSuitesThe vector of cipherSuites (can be an empty vector).
void decaf::net::ssl::SSLParameters::setNeedClientAuth ( bool  needClientAuth)
inline

Sets whether client authentication should be required.

Calling this method clears the wantClientAuth flag.

Parameters
needClientAuthwhether client authentication should be required.
void decaf::net::ssl::SSLParameters::setProtocols ( const std::vector< std::string > &  protocols)
inline

Sets the vector of protocols.

Parameters
protocolsthe vector of protocols (or an empty vector)
void decaf::net::ssl::SSLParameters::setServerNames ( const std::vector< std::string > &  serverNames)
inline

Sets the Server Names that this client wants to encode for use during the SSL Handshaking phase.

The list is copied so the values cannot be changed later.

Parameters
serverNamesThe server name to encode into the SSL handshake.
void decaf::net::ssl::SSLParameters::setWantClientAuth ( bool  wantClientAuth)
inline

Sets whether client authentication should be requested.

Calling this method clears the needClientAuth flag.

Parameters
wantClientAuthwhether client authentication should be requested.

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