Home
Net module

VerificationErrorDetails

A utility class for certificate error handling.

VerificationErrorDetails

#include <icy/net/sslmanager.h>
class VerificationErrorDetails

Defined in src/net/include/icy/net/sslmanager.h:134

A utility class for certificate error handling.

List of all members

NameKindOwner
VerificationErrorDetailsfunctionDeclared here
~VerificationErrorDetailsfunctionDeclared here
certificatefunctionDeclared here
errorDepthfunctionDeclared here
errorNumberfunctionDeclared here
errorMessagefunctionDeclared here
setIgnoreErrorfunctionDeclared here
getIgnoreErrorfunctionDeclared here
_certvariableDeclared here
_errorDepthvariableDeclared here
_errorNumbervariableDeclared here
_errorMessagevariableDeclared here
_ignoreErrorvariableDeclared here

Public Methods

ReturnNameDescription
VerificationErrorDetailsCreates the VerificationErrorDetails. _ignoreError is per default set to false.
~VerificationErrorDetails noexceptDestroys 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)

Defined in src/net/include/icy/net/sslmanager.h:139

Creates the VerificationErrorDetails. _ignoreError is per default set to false.


~VerificationErrorDetails

noexcept

~VerificationErrorDetails() noexcept

Defined in src/net/include/icy/net/sslmanager.h:143

Destroys the VerificationErrorDetails.


certificate

const inline

inline const crypto::X509Certificate & certificate() const

Defined in src/net/include/icy/net/sslmanager.h:146

Returns the certificate that caused the error.


errorDepth

const inline

inline int errorDepth() const

Defined in src/net/include/icy/net/sslmanager.h:149

Returns the position of the certificate in the certificate chain.


errorNumber

const inline

inline int errorNumber() const

Defined in src/net/include/icy/net/sslmanager.h:152

Returns the id of the error.


errorMessage

const inline

inline const std::string & errorMessage() const

Defined in src/net/include/icy/net/sslmanager.h:155

Returns the textual presentation of the errorNumber.


setIgnoreError

inline

inline void setIgnoreError(bool ignoreError)

Defined in src/net/include/icy/net/sslmanager.h:159

setIgnoreError to true, if a verification error is judged non-fatal by the user.


getIgnoreError

const inline

inline bool getIgnoreError() const

Defined in src/net/include/icy/net/sslmanager.h:162

returns the value of _ignoreError

Private Attributes

ReturnNameDescription
crypto::X509Certificate_cert
int_errorDepth
int_errorNumber
std::string_errorMessage
bool_ignoreError

_cert

crypto::X509Certificate _cert

Defined in src/net/include/icy/net/sslmanager.h:165


_errorDepth

int _errorDepth

Defined in src/net/include/icy/net/sslmanager.h:166


_errorNumber

int _errorNumber

Defined in src/net/include/icy/net/sslmanager.h:167


_errorMessage

std::string _errorMessage

Defined in src/net/include/icy/net/sslmanager.h:168


_ignoreError

bool _ignoreError

Defined in src/net/include/icy/net/sslmanager.h:169