libdigidocpp
|
#include <OCSPException.h>
Public Member Functions | |
OCSPException (const std::string &file, int line, const std::string &msg, int responseStatusCode) | |
OCSPException (const std::string &file, int line, const std::string &msg, const Exception &cause, int responseStatusCode) | |
int | getResponseStatusCode () |
std::string | getResponseStatusMessage () |
![]() | |
Exception (const std::string &file, int line, const std::string &msg) | |
Exception (const std::string &file, int line, const std::string &msg, const Exception &cause) | |
ExceptionCode | code () const |
int | ddoc () const |
std::string | getMsg () const |
bool | hasCause () const |
Causes | getCauses () const |
void | addCause (const Exception &cause) |
void | setCode (ExceptionCode Code) |
void | setDDoc (int err) |
Static Public Member Functions | |
static std::string | toResponseStatusMessage (int responseStatusCode) |
Private Attributes | |
int | responseStatusCode |
Additional Inherited Members | |
![]() | |
enum | ExceptionCode { CertificateIssuerMissing = 10, CertificateRevoked = 5, CertificateUnknown = 6, NoException = 0, OCSPResponderMissing = 8, OCSPCertMissing = 9, OCSPTimeSlot = 7, OCSPRequestUnauthorized = 11, PINCanceled = 2, PINFailed = 4, PINIncorrect = 1, PINLocked = 3 } |
typedef std::vector< Exception > | Causes |
![]() | |
std::string | file |
std::string | msg |
int | line |
int | m_ddoc |
Causes | causes |
ExceptionCode | m_code |
OCSP exception implementation. Thrown if OCSP response is not valid or OCSP response status code is not Successful (0x00). OCSP status code can be accessed with method getResponseStatusMessage()
. For example if the status code is 0x03 (TryLater) the OCSP request can be be made again (e.g. the OCSP server could be busy at the time).
Definition at line 35 of file OCSPException.h.
digidoc::OCSPException::OCSPException | ( | const std::string & | file, |
int | line, | ||
const std::string & | msg, | ||
int | responseStatusCode | ||
) |
file | filename, where the exception was thrown. |
line | line of the file, where the exception was thrown. |
msg | error message. |
responseStatusCode | OCSP response status code. |
Definition at line 32 of file OCSPException.cpp.
digidoc::OCSPException::OCSPException | ( | const std::string & | file, |
int | line, | ||
const std::string & | msg, | ||
const Exception & | cause, | ||
int | responseStatusCode | ||
) |
file | filename, where the exception was thrown. |
line | line of the file, where the exception was thrown. |
msg | error message. |
cause | cause of the exception. |
responseStatusCode | OCSP response status code. |
Definition at line 48 of file OCSPException.cpp.
int digidoc::OCSPException::getResponseStatusCode | ( | ) |
Definition at line 57 of file OCSPException.cpp.
std::string digidoc::OCSPException::getResponseStatusMessage | ( | ) |
Definition at line 65 of file OCSPException.cpp.
|
static |
Converts OCSP response status code to corresponding status message.
responseStatusCode | OCSP response status code. |
Definition at line 76 of file OCSPException.cpp.
Referenced by digidoc::OCSP::validateResponse().
|
private |
Definition at line 46 of file OCSPException.h.