#include <src/main/decaf/net/ssl/SSLParameters.h>
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
-
cipherSuites | The 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
-
cipherSuites | The vector of cipherSuites for this SSLParameters instance (can be empty). |
protocols | The 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
-
cipherSuites | The 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
-
needClientAuth | whether client authentication should be required. |
void decaf::net::ssl::SSLParameters::setProtocols |
( |
const std::vector< std::string > & |
protocols | ) |
|
|
inline |
Sets the vector of protocols.
- Parameters
-
protocols | the 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
-
whether | client authentication should be requested. |
The documentation for this class was generated from the following file: