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

ReturnNameDescription
VerificationErrorDetailsCreates the VerificationErrorDetails. _ignoreError is per default set to false.
~VerificationErrorDetailsDestroys the VerificationErrorDetails.
const crypto::X509Certificate &certificate const inlineReturns the certificate that caused the error.
interrorDepth const inlineReturns the position of the certificate in the certificate chain.
interrorNumber const inlineReturns the id of the error.
const std::string &errorMessage const inlineReturns the textual presentation of the errorNumber.
voidsetIgnoreError inlinesetIgnoreError to true, if a verification error is judged non-fatal by the user.
boolgetIgnoreError const inlinereturns 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() noexcept

Destroys the VerificationErrorDetails.


certificate

const inline

inline const crypto::X509Certificate & certificate() const

Returns the certificate that caused the error.


errorDepth

const inline

inline int errorDepth() const

Returns the position of the certificate in the certificate chain.


errorNumber

const inline

inline int errorNumber() const

Returns the id of the error.


errorMessage

const inline

inline const std::string & errorMessage() const

Returns 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() const

returns the value of _ignoreError

Private Attributes

ReturnNameDescription
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