Net module
VerificationErrorDetails
A utility class for certificate error handling.
VerificationErrorDetails
#include <icy/net/sslmanager.h>A utility class for certificate error handling.
Public Methods
| Return | Name | Description |
|---|---|---|
VerificationErrorDetails | Creates the VerificationErrorDetails. _ignoreError is per default set to false. | |
~VerificationErrorDetails | Destroys the VerificationErrorDetails. | |
const crypto::X509Certificate & | certificate const inline | Returns the certificate that caused the error. |
int | errorDepth const inline | Returns the position of the certificate in the certificate chain. |
int | errorNumber const inline | Returns the id of the error. |
const std::string & | errorMessage const inline | Returns the textual presentation of the errorNumber. |
void | setIgnoreError inline | setIgnoreError to true, if a verification error is judged non-fatal by the user. |
bool | getIgnoreError const inline | returns the value of _ignoreError |
VerificationErrorDetails
VerificationErrorDetails(const crypto::X509Certificate & cert, int errDepth, int errNum, const std::string & errMsg)Creates the VerificationErrorDetails. _ignoreError is per default set to false.
~VerificationErrorDetails
~VerificationErrorDetails() noexceptDestroys the VerificationErrorDetails.
certificate
const inline
inline const crypto::X509Certificate & certificate() constReturns the certificate that caused the error.
errorDepth
const inline
inline int errorDepth() constReturns the position of the certificate in the certificate chain.
errorNumber
const inline
inline int errorNumber() constReturns the id of the error.
errorMessage
const inline
inline const std::string & errorMessage() constReturns the textual presentation of the errorNumber.
setIgnoreError
inline
inline void setIgnoreError(bool ignoreError)setIgnoreError to true, if a verification error is judged non-fatal by the user.
getIgnoreError
const inline
inline bool getIgnoreError() constreturns the value of _ignoreError
Private Attributes
| Return | Name | Description |
|---|---|---|
crypto::X509Certificate | _cert | |
int | _errorDepth | |
int | _errorNumber | |
std::string | _errorMessage | |
bool | _ignoreError |
_cert
crypto::X509Certificate _cert_errorDepth
int _errorDepth_errorNumber
int _errorNumber_errorMessage
std::string _errorMessage_ignoreError
bool _ignoreError