class CKeyInfoBase : protected CBase |
Base class for CCTKeyInfo.
Public Member Functions | |
---|---|
TInt | AccessType() |
EKeyAlgorithm | Algorithm() |
TTime | EndDate() |
IMPORT_C void | ExternalizeL(RWriteStream &) |
TInt | HandleID() |
TKeyIdentifier | ID() |
const TDesC & | Label() |
const TSecurityPolicy & | ManagementPolicy() |
TBool | Native() |
const TDesC8 & | PKCS8AttributeSet() |
void | SetAlgorithm(EKeyAlgorithm) |
void | SetHandle(TInt) |
void | SetIdentifier(TKeyIdentifier) |
void | SetSize(TUint) |
TUint | Size() |
TTime | StartDate() |
TKeyUsagePKCS15 | Usage() |
const TSecurityPolicy & | UsePolicy() |
Protected Member Functions | |
---|---|
CKeyInfoBase(TKeyIdentifier, TKeyUsagePKCS15, TUint, HBufC *, TInt, const TSecurityPolicy &, const TSecurityPolicy &, EKeyAlgorithm, TInt, TBool, TTime, TTime, HBufC8 *) | |
CKeyInfoBase() | |
~CKeyInfoBase() | |
IMPORT_C void | ConstructL() |
IMPORT_C void | ConstructL(RReadStream &) |
Private Member Functions | |
---|---|
void | InternalizeL(RReadStream &) |
Public Member Enumerations | |
---|---|
enum | EKeyAccess { EInvalidAccess = 0x00, ESensitive = 0x01, EExtractable = 0x02, EAlwaysSensitive = 0x04, ENeverExtractable = 0x08, ELocal = 0x10 } |
enum | EKeyAlgorithm { EInvalidAlgorithm = 0, ERSA = 1, EDSA = 2, EDH = 3 } |
IMPORT_C | CKeyInfoBase | ( | TKeyIdentifier | aID, |
TKeyUsagePKCS15 | aUsage, | |||
TUint | aSize, | |||
HBufC * | aLabel, | |||
TInt | aHandle, | |||
const TSecurityPolicy & | aUsePolicy, | |||
const TSecurityPolicy & | aManagementPolicy, | |||
EKeyAlgorithm | aAlgorithm, | |||
TInt | aAccessType, | |||
TBool | aNative, | |||
TTime | aStartDate, | |||
TTime | aEndDate, | |||
HBufC8 * | aPKCS8AttributeSet | |||
) | [protected] |
Protected constructor, called by derived classes.
TKeyIdentifier aID | |
TKeyUsagePKCS15 aUsage | |
TUint aSize | |
HBufC * aLabel | |
TInt aHandle | |
const TSecurityPolicy & aUsePolicy | |
const TSecurityPolicy & aManagementPolicy | |
EKeyAlgorithm aAlgorithm | |
TInt aAccessType | |
TBool aNative | |
TTime aStartDate | |
TTime aEndDate | |
HBufC8 * aPKCS8AttributeSet |
IMPORT_C | ~CKeyInfoBase | ( | ) | [protected] |
Destructor is protected so CCTKeyInfo can force users to call Release.
TInt | AccessType | ( | ) | const [inline] |
The key access type. The return code is bitfield made up of 0 or more values from EKeyAccess ORed together.
IMPORT_C void | ConstructL | ( | ) | [protected] |
Second phase constructor. Called by derived classes' NewL methods.
IMPORT_C void | ConstructL | ( | RReadStream & | aIn | ) | [protected] |
Second phase constructor. Called by derived classes' NewL methods.
RReadStream & aIn |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalizes the key data to stream
RWriteStream & aStream |
TInt | HandleID | ( | ) | const [inline] |
Get the handle of the key. This is a identifier that uniquely identifies the key within one store, and is used to construct the token handle.
void | InternalizeL | ( | RReadStream & | aStream | ) | [private] |
Internalizes key data from a stream.
RReadStream & aStream |
TBool | Native | ( | ) | const [inline] |
Returns whether the key is native.
A native key is one where operations on the key are performed on the same hardware as the the key is stored. For instance, if a key that is stored on secure hardware but calculations are carried out on the main processor, it isn't native.
void | SetAlgorithm | ( | EKeyAlgorithm | aAlg | ) | [inline] |
Set the key algorithm.
EKeyAlgorithm aAlg |
void | SetHandle | ( | TInt | aHandle | ) | [inline] |
Set the handle of the key. Called by the token when a key is created.
TInt aHandle | The new handle of the key |
void | SetIdentifier | ( | TKeyIdentifier | aId | ) | [inline] |
Called by the token when a key is created, to set the key identifier (SHA-1 hash) of the new key
TKeyIdentifier aId | The newly generated SHA-1 hash |
Flags for key access bitfield.
EInvalidAccess = 0x00 | |
ESensitive = 0x01 | |
EExtractable = 0x02 | |
EAlwaysSensitive = 0x04 | |
ENeverExtractable = 0x08 | |
ELocal = 0x10 |