#include <pkixcertchain.h>
class CPKIXCertChain : public CPKIXCertChainBase |
Inherited Attributes | |
---|---|
CX509CertChain::iChain |
This class implements a PKIX certificate chain.
IMPORT_C void | AddCertL | ( | const TPtrC8 & | aEncodedCerts | ) |
Reimplemented from CPKIXCertChainBase::AddCertL(const TPtrC8 &)
Adds a certificate (if it is not self-signed) to the chain .
Parameter | Description |
---|---|
aEncodedCerts | A DER encoded X.509 certificate. |
IMPORT_C void | AddSupportedCriticalExtensionsL | ( | const RPointerArray< TDesC > & | aCriticalExtOids | ) |
Reimplemented from CPKIXCertChainBase::AddSupportedCriticalExtensionsL(const RPointerArray< TDesC > &)
Adds one or more critical extension OIDs to the list of supported critical extensions. Duplicate OID values are not added.
Parameter | Description |
---|---|
aCriticalExtOids | A list of the critical extensions OIDs to append to the supported list. Ownership is not transferred from the caller. |
IMPORT_C void | CancelValidate | ( | ) |
Reimplemented from CPKIXCertChainBase::CancelValidate()
Cancels an asynchronous ValidateL() operation.
IMPORT_C TBool | ChainHasRoot | ( | ) | const |
Reimplemented from CPKIXCertChainBase::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().
Returns: ETrue if the chain has a root; EFalse, otherwise.
IMPORT_C CPKIXCertChain * | NewL | ( | RFs & | aFs, |
const TPtrC8 & | aEncodedCerts, | |||
const TUid | aClient | |||
) | [static] |
Creates a certificate chain using the binary data in aEncodedCerts.
Parameter | Description |
---|---|
aFs | An open file server session. |
aEncodedCerts | One or more concatenated DER encoded X.509 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. The individual certificates can be retrieved since each one contains its own length. |
aClient | The Uid identifying the purpose for which the chain will be used. This value will be used to select a subset of stored certificates, by way of their trust settings, to be used as candidate root certificates. |
IMPORT_C CPKIXCertChain * | NewL | ( | RFs & | aFs, |
const TPtrC8 & | aEncodedCerts, | |||
const RPointerArray< CX509Certificate > & | aRootCerts | |||
) | [static] |
Creates a certificate chain using the binary data in aEncodedCerts.
Parameter | Description |
---|---|
aFs | An open file server session. |
aEncodedCerts | One or more concatenated DER encoded X.509 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. The individual certificates can be retrieved since each one contains its own length. |
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 CPKIXCertChain * | 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.
Parameter | Description |
---|---|
aFs | An open file server session |
aEncodedCerts | One or more concatenated DER encoded X.509 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. The individual certificates can be retrieved since each one contains its own length. |
aClient | The Uid identifying the purpose for which the chain will be used. This value will be used to select a subset of stored certificates, by way of their trust settings, to be used as candidate root certificates. |
IMPORT_C CPKIXCertChain * | NewLC | ( | RFs & | aFs, |
const TPtrC8 & | aEncodedCerts, | |||
const RPointerArray< CX509Certificate > & | aRootCerts | |||
) | [static] |
Creates a certificate chain using the binary data in aEncodedCerts and puts a pointer to the new object onto the cleanup stack.
Parameter | Description |
---|---|
aFs | An open file server session. |
aEncodedCerts | One or more concatenated DER encoded X.509 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. The individual certificates can be retrieved since each one contains its own length. |
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 | RemoveSupportedCriticalExtensions | ( | const RPointerArray< TDesC > & | aCriticalExtOids | ) |
Reimplemented from CPKIXCertChainBase::RemoveSupportedCriticalExtensions(const RPointerArray< TDesC > &)
Removes one or more critical extension OIDs from the list of supported critical extensions.
IMPORT_C void | ResetSupportedCriticalExtsToDefaultL | ( | ) |
Reimplemented from CPKIXCertChainBase::ResetSupportedCriticalExtsToDefaultL()
Resets the current list of supported critical extensions and re-populates it with the default set which includes the X.509 standard and Symbian specific SIS file critical extensions. These extensions may change in the future and should not be relied upon.
IMPORT_C void | SetSupportedCriticalExtensionsL | ( | const RPointerArray< TDesC > & | aCriticalExtOids | ) |
Reimplemented from CPKIXCertChainBase::SetSupportedCriticalExtensionsL(const RPointerArray< TDesC > &)
Completely replaces the set of supported critical extensions for certificate validation. If a critical extension is encountered matching one of these OIDs then its occurrence is treated as a warning rather than an error. The results of which can be queried through a call to CPKIXValidationResult::ValidationWarnings().
Parameter | Description |
---|---|
aCriticalExtOids | A list of the critical extensions OIDs for the class to support. Ownership is not transferred from the caller. |
IMPORT_C void | SetValidityPeriodCheckFatal | ( | TBool | aIsFatal | ) |
Reimplemented from CPKIXCertChainBase::SetValidityPeriodCheckFatal(TBool)
Specify if a failed check on the certificate validity date is treated as an error or a warning.
Parameter | Description |
---|---|
aIsFatal | ETrue for reporting as an error; EFalse for a warning. |
IMPORT_C const RPointerArray< TDesC > & | SupportedCriticalExtensions | ( | ) | const |
Reimplemented from CPKIXCertChainBase::SupportedCriticalExtensions()const
Returns a list of the critical extension OIDs that are supported by the chain validator. If a critical extension is encountered in a certificate chain whose OID matches an element in this set then the chain validator shall treat this as a warning instead of an error.
If CPKIXCertChain::SetSupportedCriticalExtensionsL() has not been called, this list will return the default set of supported critical extensions which includes the X.509 standard and Symbian specific SIS file critical extensions. These extensions may change in the future and should not be relied upon.
Returns: The current list of supported critical extension OIDs. Ownership is not transferred to the caller.
IMPORT_C void | ValidateL | ( | CPKIXValidationResult & | aValidationResult, |
const TTime & | aValidationTime, | |||
TRequestStatus & | aStatus | |||
) |
Validates the chain.
Parameter | Description |
---|---|
aValidationResult | On completion, this contains the result of the validation. |
aValidationTime | The time that should be presumed to be the current time when checking timestamps. |
aStatus | An asynchronous request status object. |
IMPORT_C void | ValidateL | ( | CPKIXValidationResult & | aValidationResult, |
const TTime & | aValidationTime, | |||
const CArrayPtr< HBufC > & | aInitialPolicies, | |||
TRequestStatus & | aStatus | |||
) |
Validates the chain.
Parameter | Description |
---|---|
aValidationResult | On completion, this contains the result of the validation. |
aValidationTime | The time that should be presumed to be the current time when checking timestamps. |
aInitialPolicies | The policies we want to be present in the certificate chain. |
aStatus | An asynchronous request status object. |