Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
Poco::Net::VerificationErrorArgs Class Reference

A utility class for certificate error handling. More...

#include <VerificationErrorArgs.h>

+ Collaboration diagram for Poco::Net::VerificationErrorArgs:

Public Member Functions

 VerificationErrorArgs (Poco::Net::Context::Ptr pContext, const X509Certificate &cert, int errDepth, int errNum, const std::string &errMsg)
 
 ~VerificationErrorArgs ()
 Creates the VerificationErrorArgs. _ignoreError is per default set to false.
 
Poco::Net::Context::Ptr context () const
 Destroys the VerificationErrorArgs.
 
const X509Certificatecertificate () const
 Returns the Context of the underlying connection causing the error.
 
int errorDepth () const
 Returns the certificate that caused the error.
 
int errorNumber () const
 Returns the position of the certificate in the certificate chain.
 
const std::string & errorMessage () const
 Returns the id of the error.
 
void setIgnoreError (bool ignoreError)
 Returns the textual presentation of the errorNumber.
 
bool getIgnoreError () const
 setIgnoreError to true, if a verification error is judged non-fatal by the user.
 

Private Attributes

Poco::Net::Context::Ptr _pContext
 returns the value of _ignoreError
 
X509Certificate _cert
 
int _errorDepth
 
int _errorNumber
 
std::string _errorMessage
 
bool _ignoreError
 Textual representation of the _errorNumber.
 

Detailed Description

A utility class for certificate error handling.

Definition at line 30 of file VerificationErrorArgs.h.

Constructor & Destructor Documentation

◆ VerificationErrorArgs()

Poco::Net::VerificationErrorArgs::VerificationErrorArgs ( Poco::Net::Context::Ptr pContext,
const X509Certificate & cert,
int errDepth,
int errNum,
const std::string & errMsg )

◆ ~VerificationErrorArgs()

Poco::Net::VerificationErrorArgs::~VerificationErrorArgs ( )

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

Member Function Documentation

◆ certificate()

const X509Certificate & Poco::Net::VerificationErrorArgs::certificate ( ) const
inline

Returns the Context of the underlying connection causing the error.

Definition at line 80 of file VerificationErrorArgs.h.

◆ context()

Poco::Net::Context::Ptr Poco::Net::VerificationErrorArgs::context ( ) const
inline

Destroys the VerificationErrorArgs.

Definition at line 74 of file VerificationErrorArgs.h.

◆ errorDepth()

int Poco::Net::VerificationErrorArgs::errorDepth ( ) const
inline

Returns the certificate that caused the error.

Definition at line 86 of file VerificationErrorArgs.h.

◆ errorMessage()

const std::string & Poco::Net::VerificationErrorArgs::errorMessage ( ) const
inline

Returns the id of the error.

Definition at line 98 of file VerificationErrorArgs.h.

◆ errorNumber()

int Poco::Net::VerificationErrorArgs::errorNumber ( ) const
inline

Returns the position of the certificate in the certificate chain.

Definition at line 92 of file VerificationErrorArgs.h.

◆ getIgnoreError()

bool Poco::Net::VerificationErrorArgs::getIgnoreError ( ) const
inline

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

Definition at line 110 of file VerificationErrorArgs.h.

◆ setIgnoreError()

void Poco::Net::VerificationErrorArgs::setIgnoreError ( bool ignoreError)
inline

Returns the textual presentation of the errorNumber.

Definition at line 104 of file VerificationErrorArgs.h.

Member Data Documentation

◆ _cert

X509Certificate Poco::Net::VerificationErrorArgs::_cert
private

Definition at line 63 of file VerificationErrorArgs.h.

◆ _errorDepth

int Poco::Net::VerificationErrorArgs::_errorDepth
private

Definition at line 64 of file VerificationErrorArgs.h.

◆ _errorMessage

std::string Poco::Net::VerificationErrorArgs::_errorMessage
private

Definition at line 66 of file VerificationErrorArgs.h.

◆ _errorNumber

int Poco::Net::VerificationErrorArgs::_errorNumber
private

Definition at line 65 of file VerificationErrorArgs.h.

◆ _ignoreError

bool Poco::Net::VerificationErrorArgs::_ignoreError
private

Textual representation of the _errorNumber.

Definition at line 67 of file VerificationErrorArgs.h.

◆ _pContext

Poco::Net::Context::Ptr Poco::Net::VerificationErrorArgs::_pContext
private

returns the value of _ignoreError

Definition at line 62 of file VerificationErrorArgs.h.


The documentation for this class was generated from the following file: