class CWTLSCertChain : public CBase |
Implements a WTLS certificate chain.
Public Member Functions | |
---|---|
~CWTLSCertChain() | |
IMPORT_C void | AppendCertsL(const TPtrC8 &) |
IMPORT_C const CWTLSCertificate & | Cert(TInt) |
IMPORT_C TBool | ChainHasRoot() |
IMPORT_C TInt | Count() |
IMPORT_C CWTLSCertChain * | NewL(RFs &, const TPtrC8 &, const TUid) |
IMPORT_C CWTLSCertChain * | NewL(RFs &, const TPtrC8 &, const CArrayPtr< CWTLSCertificate > &) |
IMPORT_C CWTLSCertChain * | NewLC(RFs &, const TPtrC8 &, const TUid) |
IMPORT_C CWTLSCertChain * | NewLC(RFs &, const TPtrC8 &, const CArrayPtr< CWTLSCertificate > &) |
IMPORT_C void | ValidateL(CWTLSValidationResult &, const TTime &, TRequestStatus &) |
Private Member Functions | |
---|---|
CWTLSCertChain(RFs &) | |
void | ConstructL(const TPtrC8 &, const TUid) |
void | ConstructL(const TPtrC8 &, const CArrayPtr< CWTLSCertificate > &) |
void | DoConstructL(const TPtrC8 &) |
Private Attributes | |
---|---|
CWTLSCertChainAO * | iActiveObject |
CArrayPtrFlat< CWTLSCertificate > * | iChain |
TBool | iChainHasRoot |
RFs & | iFs |
IMPORT_C void | AppendCertsL | ( | const TPtrC8 & | aEncodedCerts | ) |
Appends the specified encoded certificate to the chain.
const TPtrC8 & aEncodedCerts | One or more concatenated DER encoded WTLS certificates. These certificates will be used as candidates. The first certificate will be interpreted as the end entity certificate to be validated; subsequent certificates may be in any order and may be used by the chain as intermediate certificates, but not root certificates. |
IMPORT_C const CWTLSCertificate & | Cert | ( | TInt | aIndex | ) | const |
Gets the certificate at the specified index.
The WTLS certificate at the specified index.
TInt aIndex | The ordinal number representing the position of the certificate within the chain. |
IMPORT_C TBool | ChainHasRoot | ( | ) | const |
Tests whether the root certificate of the chain is locatable.
Note that the value is only significant after a successfull call to ValidateL().
ETrue if the chain has a root; EFalse, otherwise.
void | ConstructL | ( | const TPtrC8 & | aEncodedCerts, |
const TUid | aClient | |||
) | [private] |
void | ConstructL | ( | const TPtrC8 & | aEncodedCerts, |
const CArrayPtr< CWTLSCertificate > & | aRootCerts | |||
) | [private] |
const TPtrC8 & aEncodedCerts | |
const CArrayPtr< CWTLSCertificate > & aRootCerts |
IMPORT_C TInt | Count | ( | ) | const |
Gets the number of WTLS certificates in the chain.
The number of WTLS certificates in the chain.
void | DoConstructL | ( | const TPtrC8 & | aEncodedCerts | ) | [private] |
const TPtrC8 & aEncodedCerts |
IMPORT_C CWTLSCertChain * | NewL | ( | RFs & | aFs, |
const TPtrC8 & | aEncodedCerts, | |||
const TUid | aClient | |||
) | [static] |
Creates a certificate chain using the binary data in aEncodedCerts.
RFs & aFs | An open file server session. |
const TPtrC8 & aEncodedCerts | One or more concatenated DER encoded WTLS certificates. The first certificate will be interpreted as the end entity certificate to be validated; subsequent certificates may be in any order and may be used by the chain as intermediate certificates, but not root certificates. |
const TUid aClient | The uid of the client. It is a value identifying the application to the chain; this will be used to select a subset of stored certificates to use as candidate root certificates. |
IMPORT_C CWTLSCertChain * | NewL | ( | RFs & | aFs, |
const TPtrC8 & | aEncodedCerts, | |||
const CArrayPtr< CWTLSCertificate > & | aRootCerts | |||
) | [static] |
Creates a certificate chain using the binary data in aEncodedCerts.
RFs & aFs | An open file server session. |
const TPtrC8 & aEncodedCerts | One or more concatenated DER encoded WTLS certificates. The first certificate will be interpreted as the end entity certificate to be validated; subsequent certificates may be in any order and may be used by the chain as intermediate certificates, but not root certificates. Any self signed certificates supplied here after the first one will be discarded, as self signed certificates cannot by definition be intermediate certificates. |
const CArrayPtr< CWTLSCertificate > & aRootCerts | An array of certificates which the chain will treat as candidate root certificates. If one of these overloads is used, the chain will not look in stores for root certificates, but will only use the certificates supplied here. |
IMPORT_C CWTLSCertChain * | NewLC | ( | RFs & | aFs, |
const TPtrC8 & | aEncodedCerts, | |||
const TUid | aClient | |||
) | [static] |
Creates a certificate chain using the binary data in aEncodedCerts and puts a pointer to the new object onto the cleanup stack.
RFs & aFs | An open file server session |
const TPtrC8 & aEncodedCerts | One or more concatenated DER encoded WTLS certificates. The first certificate will be interpreted as the end entity certificate to be validated; subsequent certificates may be in any order and may be used by the chain as intermediate certificates, but not root certificates. |
const TUid aClient | The uid of the client. It is a value identifying the application to the chain; this will be used to select a subset of stored certificates to use as candidate root certificates. |
IMPORT_C CWTLSCertChain * | NewLC | ( | RFs & | aFs, |
const TPtrC8 & | aEncodedCerts, | |||
const CArrayPtr< CWTLSCertificate > & | aRootCerts | |||
) | [static] |
Creates a certificate chain using the binary data in aEncodedCerts and puts a pointer to the new object onto the cleanup stack.
RFs & aFs | An open file server session. |
const TPtrC8 & aEncodedCerts | One or more concatenated DER encoded WTLS certificates. The first certificate will be interpreted as the end entity certificate to be validated; subsequent certificates may be in any order and may be used by the chain as intermediate certificates, but not root certificates. Any self signed certificates supplied here after the first one will be discarded as self signed certificates cannot by definition be intermediate certificates. |
const CArrayPtr< CWTLSCertificate > & aRootCerts | An array of certificates which the chain will treat as candidate root certificates. If one of these overloads is used, the chain will not look in stores for root certificates, but will only use the certificates supplied here. |
IMPORT_C void | ValidateL | ( | CWTLSValidationResult & | aValidationResult, |
const TTime & | aValidationTime, | |||
TRequestStatus & | aStatus | |||
) |
Validates the chain.
CWTLSValidationResult & aValidationResult | On completion, this contains the result of the validation. |
const TTime & aValidationTime | The time for which validation should be performed, usually the current time. |
TRequestStatus & aStatus | An asynchronous request status object. |