class CPKIXValidationResultBase : public CBase |
Base class for CPKIXValidationResult .
Public Member Functions | |
---|---|
~CPKIXValidationResultBase () | |
IMPORT_C void | AppendCertificateValidationObjectL (const CCertificateValidationWarnings &) |
IMPORT_C void | AppendCriticalExtensionWarningL ( TDesC &) |
void | AppendPolicyL ( CX509CertPolicyInfo &) |
void | AppendWarningL ( TValidationStatus ) |
IMPORT_C const TValidationStatus | Error () |
IMPORT_C void | ExternalizeL ( RWriteStream &) |
IMPORT_C void | InternalizeL ( RReadStream &) |
IMPORT_C CPKIXValidationResultBase * | NewL () |
IMPORT_C CPKIXValidationResultBase * | NewL ( RReadStream &) |
IMPORT_C CPKIXValidationResultBase * | NewLC () |
IMPORT_C CPKIXValidationResultBase * | NewLC ( RReadStream &) |
IMPORT_C const CArrayPtrFlat < CX509CertPolicyInfo > & | Policies () |
void | RemovePolicies () |
void | Reset () |
void | SetError (const TValidationError , const TInt ) |
void | SetErrorAndLeaveL (const TValidationError , const TInt ) |
IMPORT_C const RPointerArray < CCertificateValidationWarnings > & | ValidationWarnings () |
IMPORT_C const CArrayFixFlat < TValidationStatus > & | Warnings () |
Protected Member Functions | |
---|---|
CPKIXValidationResultBase () | |
IMPORT_C void | ConstructL () |
Private Attributes | |
---|---|
RPointerArray < CCertificateValidationWarnings > | iCertWarnings |
TValidationStatus | iError |
CArrayPtrFlat < CX509CertPolicyInfo > * | iPolicies |
CArrayFixFlat < TValidationStatus > * | iWarnings |
IMPORT_C | ~CPKIXValidationResultBase | ( | ) |
The destructor.
Frees all resources owned by the object.
IMPORT_C void | AppendCertificateValidationObjectL | ( | const CCertificateValidationWarnings & | aCertWarning | ) |
Adds a certificate warning to the validation result.
const CCertificateValidationWarnings & aCertWarning | The warning to be added. |
IMPORT_C void | AppendCriticalExtensionWarningL | ( | TDesC & | aCriticalExt | ) |
Adds a critical extension OID warning.
TDesC & aCriticalExt | The critical extension OID to be added. |
void | AppendPolicyL | ( | CX509CertPolicyInfo & | aPolicy | ) |
Adds a policy to the validation result.
CX509CertPolicyInfo & aPolicy | The policy to be added. |
void | AppendWarningL | ( | TValidationStatus | aWarning | ) |
Adds a warning to the validation result.
TValidationStatus aWarning | The warning to be added. |
IMPORT_C const TValidationStatus | Error | ( | ) | const |
Gets the error status of the operation.
Errors are considered fatal, i.e. validation has failed.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalises an object of this class to a write stream.
The presence of this function means that the standard templated operator<<() can be used to externalise objects of this class.
RWriteStream & aStream | Stream to which the object should be externalised. |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
Internalises an object of this class from a read stream.
The presence of this function means that the standard templated operator>>() can be used to internalise objects of this class.
Note that this function has assignment semantics: it replaces the old value of the object with a new value read from the read stream.
RReadStream & aStream | Stream from which the object should be internalised. |
IMPORT_C CPKIXValidationResultBase * | NewL | ( | ) | [static] |
Creates a new PKIX Validation Result object.
IMPORT_C CPKIXValidationResultBase * | NewL | ( | RReadStream & | aStream | ) | [static] |
Creates a new PKIX Validation Result object from a stream.
RReadStream & aStream |
IMPORT_C CPKIXValidationResultBase * | NewLC | ( | ) | [static] |
Creates a new PKIX Validation Result object, and puts a pointer to it onto the cleanup stack.
IMPORT_C CPKIXValidationResultBase * | NewLC | ( | RReadStream & | aStream | ) | [static] |
Creates a new PKIX Validation Result object from a stream, and puts a pointer to it onto the cleanup stack.
RReadStream & aStream |
IMPORT_C const CArrayPtrFlat < CX509CertPolicyInfo > & | Policies | ( | ) | const |
Gets a list of all the certificate policies which have been accepted implicitly in the course of validation.
void | RemovePolicies | ( | ) |
Removes all policies from the validation result.
It is used by the validation process to remove policies it has added when the computation cannot complete because of environmental conditions such as out of memory, file access failures, etc..
void | SetError | ( | const TValidationError | aError, |
const TInt | aCert | |||
) |
Sets the error status.
const TValidationError aError | The error type that occurred when validating the certificate chain. |
const TInt aCert | The index number identifying the certificate that gave rise to the error. |
void | SetErrorAndLeaveL | ( | const TValidationError | aError, |
const TInt | aCert | |||
) |
const TValidationError aError | The error type that occurred when validating the certificate chain. |
const TInt aCert | The index number identifying the certificate that gave rise to the error. |
IMPORT_C const RPointerArray < CCertificateValidationWarnings > & | ValidationWarnings | ( | ) | const |
Returns a list of critical extensions encountered and warnings generated by certificates during chain validation.
IMPORT_C const CArrayFixFlat < TValidationStatus > & | Warnings | ( | ) | const |
Gets a list of warnings generated.
The warnings may or may not be fatal, depending on the context, which the client is expected to provide.
RPointerArray < CCertificateValidationWarnings > | iCertWarnings | [private] |
CArrayPtrFlat < CX509CertPolicyInfo > * | iPolicies | [private] |
CArrayFixFlat < TValidationStatus > * | iWarnings | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.