#include <x509certchain.h>
class CX509CertChain : public CBase |
Protected Attributes | |
---|---|
CArrayPtrFlat< CX509Certificate > * | iChain |
Public Member Functions | |
---|---|
~CX509CertChain() | |
IMPORT_C const CX509Certificate & | Cert(TInt) |
IMPORT_C TInt | Count() |
IMPORT_C CArrayPtrFlat< CX509Certificate > * | DecodeCertsL(const TDesC8 &) |
IMPORT_C TBool | IsEqualL(const CX509CertChain &) |
Abstract base class for X.509 certificate chain validation; derive from this to suit your profile.
IMPORT_C | ~CX509CertChain | ( | ) |
Destructor.
Frees all resources owned by the object, prior to its destruction.
IMPORT_C const CX509Certificate & | Cert | ( | TInt | aIndex | ) | const |
Gets the certificate identified by the specified index. Note that Cert(Count()) corresponds to the root (if any) whilst Cert(0) corresponds to the outmost certificate in the chain.
Parameter | Description |
---|---|
aIndex | The ordinal number representing the position of the certificate within the chain. |
Returns: The X.509 certificate at the specified index.
IMPORT_C TInt | Count | ( | ) | const |
Gets the number of certificates in the chain.
Returns: The number of certificates in the chain.
IMPORT_C CArrayPtrFlat< CX509Certificate > * | DecodeCertsL | ( | const TDesC8 & | aBinaryData | ) |
Decodes the individual elements of the signed data to construct the certificates.
If the certificate has decoded the members from TeletexString then the return value may be incorrect because TeletexString type is not fully supported by this library. Instead the decode methods perform a direct conversion from 8 to 16bits by adding null characters in the second byte of each character. This will work as expected for cases where the string contains ASCII data.
Parameter | Description |
---|---|
aBinaryData | The encoded binary representation. |
Returns: The certificate objects.
IMPORT_C TBool | IsEqualL | ( | const CX509CertChain & | aOther | ) | const |
Tests whether the specified X.509 certificate chain is equal to this X.509 certificate chain.
Parameter | Description |
---|---|
aOther | The X.509 certificate chain to be compared. |
Returns: ETrue, if the certificate chains are equal;EFalse, otherwise.