CKeyInfoBase Class Reference
class CKeyInfoBase : protected CBase
|
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
&)
|
Constructor & Destructor Documentation
CKeyInfoBase(TKeyIdentifier, TKeyUsagePKCS15, TUint, HBufC *, TInt, const TSecurityPolicy &, const TSecurityPolicy &, EKeyAlgorithm, TInt, TBool, TTime, TTime, HBufC8 *)
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.
CKeyInfoBase()
IMPORT_C
|
CKeyInfoBase
|
(
|
)
|
[protected]
|
Protected constructor, called by derived classes.
~CKeyInfoBase()
IMPORT_C
|
~CKeyInfoBase
|
(
|
)
|
[protected]
|
Destructor is protected so
CCTKeyInfo
can force users to call Release.
Member Functions Documentation
AccessType()
TInt
|
AccessType
|
(
|
)
|
const [inline]
|
The key access type. The return code is bitfield made up of 0 or more values from EKeyAccess ORed together.
ConstructL()
IMPORT_C void
|
ConstructL
|
(
|
)
|
[protected]
|
Second phase constructor. Called by derived classes' NewL methods.
ConstructL(RReadStream &)
IMPORT_C void
|
ConstructL
|
(
|
RReadStream
&
|
aIn
|
)
|
[protected]
|
Second phase constructor. Called by derived classes' NewL methods.
EndDate()
TTime
|
EndDate
|
(
|
)
|
const [inline]
|
ExternalizeL(RWriteStream &)
Externalizes the key data to stream
HandleID()
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.
InternalizeL(RReadStream &)
Internalizes key data from a stream.
Label()
const
TDesC
&
|
Label
|
(
|
)
|
const [inline]
|
Native()
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.
PKCS8AttributeSet()
const
TDesC8
&
|
PKCS8AttributeSet
|
(
|
)
|
const [inline]
|
SetAlgorithm(EKeyAlgorithm)
SetHandle(TInt)
void
|
SetHandle
|
(
|
TInt
|
aHandle
|
)
|
[inline]
|
Set the handle of the key. Called by the token when a key is created.
Parameters
TInt
aHandle
|
The new handle of the key
|
SetIdentifier(TKeyIdentifier)
Called by the token when a key is created, to set the key identifier (SHA-1 hash) of the new key
SetSize(TUint)
void
|
SetSize
|
(
|
TUint
|
aSize
|
)
|
[inline]
|
Size()
TUint
|
Size
|
(
|
)
|
const [inline]
|
StartDate()
TTime
|
StartDate
|
(
|
)
|
const [inline]
|
Usage()
TKeyUsagePKCS15
|
Usage
|
(
|
)
|
const [inline]
|
Member Enumerations Documentation
Enum EKeyAccess
Flags for key access bitfield.
Enumerators
EInvalidAccess = 0x00
|
|
ESensitive = 0x01
|
|
EExtractable = 0x02
|
|
EAlwaysSensitive = 0x04
|
|
ENeverExtractable = 0x08
|
|
ELocal = 0x10
|
|
Enum EKeyAlgorithm
Enumerators
EInvalidAlgorithm = 0
|
|
ERSA = 1
|
|
EDSA = 2
|
|
EDH = 3
|
|
Member Data Documentation
TInt
iAccessType
TInt
|
iAccessType
|
[protected]
|
TTime
iEndDate
TTime
|
iEndDate
|
[protected]
|
HBufC * iLabel
HBufC
*
|
iLabel
|
[protected]
|
TSecurityPolicy
iManagementPolicy
TBool
iNative
TBool
|
iNative
|
[protected]
|
HBufC8 * iPKCS8AttributeSet
HBufC8
*
|
iPKCS8AttributeSet
|
[protected]
|
TTime
iStartDate
TTime
|
iStartDate
|
[protected]
|
TKeyUsagePKCS15
iUsage
TKeyUsagePKCS15
|
iUsage
|
[protected]
|
TSecurityPolicy
iUsePolicy
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.