class Swi::CCertChainConstraints : public CBase |
The CCertChainConstraints class is to aggregate the constraints specified in certficate extensions across all valid certificate chains and then check them against information from the device and/or information contained in the SIS file.
Public Member Functions | |
---|---|
~CCertChainConstraints () | |
IMPORT_C TBool | CapabilitiesAreConstrained () |
IMPORT_C TBool | CapabilitiesAreValid ( TCapabilitySet &) |
IMPORT_C TBool | DeviceIDIsValid (const HBufC *) |
IMPORT_C TBool | DeviceIDsAreConstrained () |
IMPORT_C CCertChainConstraints * | NewL ( RPointerArray < CPKIXCertChainBase > &) |
IMPORT_C CCertChainConstraints * | NewL () |
IMPORT_C CCertChainConstraints * | NewLC ( RPointerArray < CPKIXCertChainBase > &) |
IMPORT_C TBool | SIDIsValid ( TSecureId ) |
IMPORT_C TBool | SIDsAreConstrained () |
IMPORT_C void | SetValidCapabilities (const TCapabilitySet &) |
IMPORT_C TBool | VIDIsValid ( TVendorId ) |
IMPORT_C TBool | VIDsAreConstrained () |
IMPORT_C const TCapabilitySet & | ValidCapabilities () |
Private Member Functions | |
---|---|
CCertChainConstraints () | |
void | ConstructL ( RPointerArray < CPKIXCertChainBase > &) |
void | RetrieveExtensionCapabilitySetL (const CX509Certificate &) |
void | RetrieveExtensionDeviceIDListL (const CX509Certificate &) |
void | RetrieveExtensionSIDListL (const CX509Certificate &) |
void | RetrieveExtensionVIDListL (const CX509Certificate &) |
IMPORT_C TBool | CapabilitiesAreConstrained | ( | ) | const |
The method is tell if the Capabilities are constrained or not
IMPORT_C TBool | CapabilitiesAreValid | ( | TCapabilitySet & | aRequestCapabilities | ) | const |
Determine if the request Capability set is valid.
TCapabilitySet & aRequestCapabilities |
void | ConstructL | ( | RPointerArray < CPKIXCertChainBase > & | aValidCerts | ) | [private] |
RPointerArray < CPKIXCertChainBase > & aValidCerts |
IMPORT_C TBool | DeviceIDIsValid | ( | const HBufC * | aRequestDeviceID | ) | const |
Determine if the request Device ID is valid.
const HBufC * aRequestDeviceID |
IMPORT_C TBool | DeviceIDsAreConstrained | ( | ) | const |
The method is tell if the Device IDs are constrained or not
IMPORT_C CCertChainConstraints * | NewL | ( | RPointerArray < CPKIXCertChainBase > & | aValidCerts | ) | [static] |
Constructs a new CCertChainConstraints object
RPointerArray < CPKIXCertChainBase > & aValidCerts | a valid PKIX certificate chain |
IMPORT_C CCertChainConstraints * | NewL | ( | ) | [static] |
Constructs a new CCertChainConstraints object with no constraints
IMPORT_C CCertChainConstraints * | NewLC | ( | RPointerArray < CPKIXCertChainBase > & | aValidCerts | ) | [static] |
Constructs a new CCertChainConstraints object and leaves it on the cleanup stack
RPointerArray < CPKIXCertChainBase > & aValidCerts | a valid PKIX certificate chain |
void | RetrieveExtensionCapabilitySetL | ( | const CX509Certificate & | aCert | ) | [private] |
Retrieve the constrained capability set from the certificate extension, and take the intersection of the retrieved capabilities and the existing capability constraints as the new capability constraints
const CX509Certificate & aCert |
void | RetrieveExtensionDeviceIDListL | ( | const CX509Certificate & | aCert | ) | [private] |
Retrieve the device IDs constraints from the certificate extension and take the intersection of the retrieved device ID constraints and the existing device ID constraints as the new device ID constraints
const CX509Certificate & aCert |
void | RetrieveExtensionSIDListL | ( | const CX509Certificate & | aCert | ) | [private] |
Retrieve the SID constraints from the certificate extension and take the intersection of the retrieved SID constraints and the existing SID constraints as the new VID constraints
const CX509Certificate & aCert |
void | RetrieveExtensionVIDListL | ( | const CX509Certificate & | aCert | ) | [private] |
Retrieve the VID constraints from the certificate extension and take the intersection of the retrieved VID constraints and the existing VID constraints as the new VID constraints
const CX509Certificate & aCert |
IMPORT_C TBool | SIDIsValid | ( | TSecureId | aRequestSID | ) | const |
Determine if the request SID is valid.
TSecureId aRequestSID | a request SID |
IMPORT_C TBool | SIDsAreConstrained | ( | ) | const |
The method is tell if the SIDs are constrained or not
IMPORT_C void | SetValidCapabilities | ( | const TCapabilitySet & | aValidCapabilities | ) |
Set the valid Capability set
const TCapabilitySet & aValidCapabilities | a capability set to be set in the constaints. |
IMPORT_C TBool | VIDIsValid | ( | TVendorId | aRequestVID | ) | const |
Determine if the request VID is valid.
TVendorId aRequestVID |
IMPORT_C TBool | VIDsAreConstrained | ( | ) | const |
The method is tell if the VIDs are constrained or not
IMPORT_C const TCapabilitySet & | ValidCapabilities | ( | ) | const |
The method retrieves the valid Capability Set
TBool | iCapabilitiesAreConstrained | [private] |
The flag that represents if the Device IDs are constrained.
TBool | iDeviceIDsAreConstrained | [private] |
The flag that represents if the Device IDs are constrained.
TBool | iSIDsAreConstrained | [private] |
The flag that represents if the SIDs are constrained.
TBool | iVIDsAreConstrained | [private] |
The flag that represents if the VIDs are constrained.
TCapabilitySet | iValidCapabilities | [private] |
The list of valid capability set
RPointerArray < HBufC > | iValidDeviceIDs | [private] |
The list of valid device IDs
RArray < TSecureId > | iValidSIDs | [private] |
The list of valid secured IDs
RArray < TVendorId > | iValidVIDs | [private] |
The list of valid vendor IDs
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.