CCertificateValidationWarnings Class Reference

class CCertificateValidationWarnings : public CBase

Encapsulates the critical extensions encountered and any warnings found for a particular certificate in the chain during the process of validation.

Since
v9.5

Inherits from

  • CCertificateValidationWarnings

Constructor & Destructor Documentation

CCertificateValidationWarnings(TInt)

CCertificateValidationWarnings ( TInt aIndex ) [private]

Parameters

TInt aIndex

~CCertificateValidationWarnings()

IMPORT_C ~CCertificateValidationWarnings ( )

The destructor.

Frees all resources owned by the object.

Member Functions Documentation

AppendCriticalExtensionWarningL(TDesC &)

IMPORT_C void AppendCriticalExtensionWarningL ( TDesC & aCriticalExt )

Adds a critical extension OID warning.

Parameters

TDesC & aCriticalExt

AppendWarningL(TValidationStatus)

IMPORT_C void AppendWarningL ( TValidationStatus aWarning )

Adds a warning.

Parameters

TValidationStatus aWarning

CertIndex()

IMPORT_C TInt CertIndex ( ) const

Gets the index of the certificate in the chain.

CriticalExtensionsFound()

IMPORT_C const RPointerArray < TDesC > & CriticalExtensionsFound ( ) const

Gets a list of critical extension OIDs found in the certificate.

ExternalizeL(RWriteStream &)

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.

Parameters

RWriteStream & aStream Stream to which the object should be externalised.

InternalizeL(RReadStream &)

IMPORT_C CCertificateValidationWarnings * InternalizeL ( RReadStream & aStream ) [static]

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.

Parameters

RReadStream & aStream Stream from which the object should be internalised.

NewL(TInt)

IMPORT_C CCertificateValidationWarnings * NewL ( TInt aIndex ) [static]

Creates an instance of CCertificateValidationWarnings .

Parameters

TInt aIndex The index of aCert in the certificate chain.

NewLC(TInt)

IMPORT_C CCertificateValidationWarnings * NewLC ( TInt aIndex ) [static]

Creates an instance of CCertificateValidationWarnings .

Parameters

TInt aIndex The index of aCert in the certificate chain.

Warnings()

IMPORT_C const RArray < TValidationStatus > & Warnings ( ) const

Gets a list of warnings generated by the certificate.

Member Data Documentation

TInt iCertIndex

TInt iCertIndex [private]

RPointerArray< TDesC > iCriticalExtsFound

RPointerArray < TDesC > iCriticalExtsFound [private]

RArray< TValidationStatus > iWarnings

RArray < TValidationStatus > iWarnings [private]