#include <ResponseStatus.h>

TSP-enforcing: No
Definition at line 30 of file ResponseStatus.h.
Public Member Functions | |
| CPKIFResponseStatus () | |
| CPKIFResponseStatus (std::string errorMessage, int statusCode) | |
| CPKIFResponseStatus (const CPKIFBufferPtr &) | |
| virtual | ~CPKIFResponseStatus (void) |
| void | SetErrorMessage (std::string errorMessage) |
| const std::string | GetErrorMessage () const |
| void | SetStatusCode (int statusCode) |
| const int | GetStatusCode () const |
| CPKIFResponseStatus::CPKIFResponseStatus | ( | ) |
Interface: External
This function is used to create and initialize CPKIFResponseStatus object.
Definition at line 39 of file ResponseStatus.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_SCVP_ASN.
| CPKIFResponseStatus::CPKIFResponseStatus | ( | std::string | errorMessage, | |
| int | statusCode | |||
| ) |
Interface: External
This function is used to create and initialize CPKIFResponseStatus object.
| errorMessage | [in] String value representing error message |
| statusCode | [in] Integer value representing status code |
Definition at line 54 of file ResponseStatus.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_SCVP_ASN.
| CPKIFResponseStatus::CPKIFResponseStatus | ( | const CPKIFBufferPtr & | respStatus | ) |
Interface: External
This constructor is internally invoked; it will throw a std::bad_alloc exception if allocation of memory fails or ASN.1 decoding errors if the extension cannot be parsed.
| std::bad_alloc |
| respStatus | [in] A reference to a smart pointer to CPKIFBuffer object containing der encoded ResponseStatus |
Definition at line 75 of file ResponseStatus.cpp.
References CACASNWRAPPER_CREATE, COMMON_INVALID_INPUT, and TOOLKIT_SCVP_ASN.
| CPKIFResponseStatus::~CPKIFResponseStatus | ( | void | ) | [virtual] |
Interface: External
This function destroys instances of CPKIFResponseStatus.
Definition at line 109 of file ResponseStatus.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_SCVP_ASN.
| void CPKIFResponseStatus::SetErrorMessage | ( | std::string | errorMessage | ) |
Interface: External
This function is used to set error message
| errorMessage | [in] String value representing error message |
Definition at line 124 of file ResponseStatus.cpp.
| const string CPKIFResponseStatus::GetErrorMessage | ( | ) | const |
Interface: External
This function is used to get error message
Definition at line 137 of file ResponseStatus.cpp.
| void CPKIFResponseStatus::SetStatusCode | ( | int | statusCode | ) |
Interface: External
This function is used to set status code
Status code value are:
okay = 0, skipUnrecognizedItems = 1, tooBusy = 10, invalidRequest = 11, internalError_1 = 12, badStructure = 20, unsupportedVersion = 21, abortUnrecognizedItems = 22, unrecognizedSigKey = 23, badSignatureOrMAC = 24, unableToDecode = 25, notAuthorized = 26, unsupportedChecks = 27, unsupportedWantBacks = 28, unsupportedSignatureOrMAC = 29, invalidSignatureOrMAC = 30, protectedResponseUnsupported = 31, unrecognizedResponderName = 32, relayingLoop = 40, unrecognizedValPol = 50, unrecognizedValAlg = 51, fullRequestInResponseUnsupported = 52, fullPolResponseUnsupported = 53, inhibitPolicyMappingUnsuported = 54, requireExplicitPolicyUnsupported = 55, inhibitAnyPolicyUnsupported = 56, validityTimeUnsupported = 57, unrecognizedCritQueryExt = 63, unrecognizedCritRequestExt = 64
| statusCode | [in] Integer value representing status code |
Definition at line 182 of file ResponseStatus.cpp.
| const int CPKIFResponseStatus::GetStatusCode | ( | ) | const |
Interface: External
This function is used to get status code
Status code values are:
okay = 0, skipUnrecognizedItems = 1, tooBusy = 10, invalidRequest = 11, internalError_1 = 12, badStructure = 20, unsupportedVersion = 21, abortUnrecognizedItems = 22, unrecognizedSigKey = 23, badSignatureOrMAC = 24, unableToDecode = 25, notAuthorized = 26, unsupportedChecks = 27, unsupportedWantBacks = 28, unsupportedSignatureOrMAC = 29, invalidSignatureOrMAC = 30, protectedResponseUnsupported = 31, unrecognizedResponderName = 32, relayingLoop = 40, unrecognizedValPol = 50, unrecognizedValAlg = 51, fullRequestInResponseUnsupported = 52, fullPolResponseUnsupported = 53, inhibitPolicyMappingUnsuported = 54, requireExplicitPolicyUnsupported = 55, inhibitAnyPolicyUnsupported = 56, validityTimeUnsupported = 57, unrecognizedCritQueryExt = 63, unrecognizedCritRequestExt = 64
Definition at line 228 of file ResponseStatus.cpp.
1.5.6