VerificationErrorDetails
VerificationErrorDetails
#include <icy/net/sslmanager.h>class VerificationErrorDetailsDefined in src/net/include/icy/net/sslmanager.h:134
A utility class for certificate error handling.
List of all members
| Name | Kind | Owner |
|---|---|---|
VerificationErrorDetails | function | Declared here |
~VerificationErrorDetails | function | Declared here |
certificate | function | Declared here |
errorDepth | function | Declared here |
errorNumber | function | Declared here |
errorMessage | function | Declared here |
setIgnoreError | function | Declared here |
getIgnoreError | function | Declared here |
_cert | variable | Declared here |
_errorDepth | variable | Declared here |
_errorNumber | variable | Declared here |
_errorMessage | variable | Declared here |
_ignoreError | variable | Declared here |
Public Methods
| Return | Name | Description |
|---|---|---|
VerificationErrorDetails | Creates the VerificationErrorDetails. _ignoreError is per default set to false. | |
~VerificationErrorDetails noexcept | 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)Defined in src/net/include/icy/net/sslmanager.h:139
Creates the VerificationErrorDetails. _ignoreError is per default set to false.
~VerificationErrorDetails
noexcept
~VerificationErrorDetails() noexceptDefined in src/net/include/icy/net/sslmanager.h:143
Destroys the VerificationErrorDetails.
certificate
const inline
inline const crypto::X509Certificate & certificate() constDefined in src/net/include/icy/net/sslmanager.h:146
Returns the certificate that caused the error.
errorDepth
const inline
inline int errorDepth() constDefined 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() constDefined in src/net/include/icy/net/sslmanager.h:152
Returns the id of the error.
errorMessage
const inline
inline const std::string & errorMessage() constDefined 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() constDefined in src/net/include/icy/net/sslmanager.h:162
returns the value of _ignoreError
Private Attributes
| Return | Name | Description |
|---|---|---|
crypto::X509Certificate | _cert | |
int | _errorDepth | |
int | _errorNumber | |
std::string | _errorMessage | |
bool | _ignoreError |
_cert
crypto::X509Certificate _certDefined in src/net/include/icy/net/sslmanager.h:165
_errorDepth
int _errorDepthDefined in src/net/include/icy/net/sslmanager.h:166
_errorNumber
int _errorNumberDefined in src/net/include/icy/net/sslmanager.h:167
_errorMessage
std::string _errorMessageDefined in src/net/include/icy/net/sslmanager.h:168
_ignoreError
bool _ignoreError