activemq-cpp-3.6.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.
 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.
 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.
virtual ~SSLParameters ()
std::vector< std::string > getCipherSuites () const
void setCipherSuites (const std::vector< std::string > &cipherSuites)
 Sets the vector of ciphersuites.
std::vector< std::string > getProtocols () const
void setProtocols (const std::vector< std::string > &protocols)
 Sets the vector of protocols.
bool getWantClientAuth () const
void setWantClientAuth (bool wantClientAuth)
 Sets whether client authentication should be requested.
bool getNeedClientAuth () const
void setNeedClientAuth (bool needClientAuth)
 Sets whether client authentication should be required.

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.
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::setWantClientAuth ( bool  wantClientAuth)
inline

Sets whether client authentication should be requested.

Calling this method clears the needClientAuth flag.

Parameters
whetherclient authentication should be requested.

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