#include <wtlscertchain.h>
class CWTLSValidationResult : public CBase |
Public Member Functions | |
---|---|
~CWTLSValidationResult() | |
void | AppendWarningL(TWTLSValidationStatus) |
IMPORT_C const TWTLSValidationStatus | Error() |
IMPORT_C CWTLSValidationResult * | NewL() |
IMPORT_C CWTLSValidationResult * | NewLC() |
void | Reset() |
void | SetError(const TValidationError, const TInt) |
IMPORT_C const CArrayFixFlat< TWTLSValidationStatus > & | Warnings() |
Encapsulates the results of the validation process.
It is returned to client code, which can examine it. Client code takes ownership of it.
IMPORT_C | ~CWTLSValidationResult | ( | ) |
Destructor.
Frees all resources owned by the object, prior to its destruction.
void | AppendWarningL | ( | TWTLSValidationStatus | aWarning | ) |
Adds a warning to the validation.
Parameter | Description |
---|---|
aWarning | The validation status object to be added. |
IMPORT_C const TWTLSValidationStatus | Error | ( | ) | const |
Gets the error status of the operation.
Any errors here are considered fatal: validation has failed.
Returns: The error status of the operation.
IMPORT_C CWTLSValidationResult * | NewL | ( | ) | [static] |
Creates a new CWTLSValidationResult object.
Returns: The new WTLS Validation Result object.
IMPORT_C CWTLSValidationResult * | NewLC | ( | ) | [static] |
Creates a new CWTLSValidationResult object and puts a pointer to it on the cleanup stack.
Returns: The new WTLS Validation Result object.
void | SetError | ( | const TValidationError | aError, |
const TInt | aCert | |||
) |
Sets the error.
Parameter | Description |
---|---|
aError | The error type that occurred when validating the certificate chain. |
aCert | The index number for the certificate that gave rise to the error. |
IMPORT_C const CArrayFixFlat< TWTLSValidationStatus > & | Warnings | ( | ) | const |
Gets an array of any warnings generated.
The warnings may or may not be fatal, depending on the context, which the client is expected to provide.
Returns: An array of any warnings generated.