class CCTKeyInfo : public CKeyInfoBase |
Information about a key, as returned by MCTKeyStore::List.
Public Member Functions | |
---|---|
TCTTokenObjectHandle | Handle() |
const TDesC & | Label() |
IMPORT_C CCTKeyInfo * | NewL(TKeyIdentifier, TKeyUsagePKCS15, TUint, MCTAuthenticationObject *, HBufC *, MCTToken &, TInt, const TSecurityPolicy &, const TSecurityPolicy &, EKeyAlgorithm, TInt, TBool, TTime, TTime, HBufC8 *) |
IMPORT_C CCTKeyInfo * | NewL(RReadStream &, MCTToken &) |
MCTAuthenticationObject * | Protector() |
void | SetProtector(MCTAuthenticationObject &) |
MCTToken & | Token() |
TUid | Type() |
operator TCTTokenObjectHandle() |
Private Member Functions | |
---|---|
CCTKeyInfo(TKeyIdentifier, TKeyUsagePKCS15, TUint, MCTAuthenticationObject *, HBufC *, MCTToken &, TInt, const TSecurityPolicy &, const TSecurityPolicy &, EKeyAlgorithm, TInt, TBool, TTime, TTime, HBufC8 *) | |
CCTKeyInfo(MCTToken &) | |
~CCTKeyInfo() |
Inherited Enumerations | |
---|---|
CKeyInfoBase:EKeyAccess | |
CKeyInfoBase:EKeyAlgorithm |
Private Attributes | |
---|---|
MCTAuthenticationObject * | iProtector |
MCTToken & | iToken |
CCTKeyInfo | ( | TKeyIdentifier | aID, |
TKeyUsagePKCS15 | aUsage, | ||
TUint | aSize, | ||
MCTAuthenticationObject * | aProtector, | ||
HBufC * | aLabel, | ||
MCTToken & | aToken, | ||
TInt | aHandle, | ||
const TSecurityPolicy & | aUsePolicy, | ||
const TSecurityPolicy & | aManagementPolicy, | ||
EKeyAlgorithm | aAlgorithm, | ||
TInt | aAccessType, | ||
TBool | aNative, | ||
TTime | aStartDate, | ||
TTime | aEndDate, | ||
HBufC8 * | aPKCS8AttributeSet | ||
) | [private] |
TKeyIdentifier aID | |
TKeyUsagePKCS15 aUsage | |
TUint aSize | |
MCTAuthenticationObject * aProtector | |
HBufC * aLabel | |
MCTToken & aToken | |
TInt aHandle | |
const TSecurityPolicy & aUsePolicy | |
const TSecurityPolicy & aManagementPolicy | |
EKeyAlgorithm aAlgorithm | |
TInt aAccessType | |
TBool aNative | |
TTime aStartDate | |
TTime aEndDate | |
HBufC8 * aPKCS8AttributeSet |
TCTTokenObjectHandle | Handle | ( | ) | const [virtual] |
A handle for the key. This can be used to identify a key to another process.
IMPORT_C CCTKeyInfo * | NewL | ( | TKeyIdentifier | aID, |
TKeyUsagePKCS15 | aUsage, | |||
TUint | aSize, | |||
MCTAuthenticationObject * | aProtector, | |||
HBufC * | aLabel, | |||
MCTToken & | aToken, | |||
TInt | aHandle, | |||
const TSecurityPolicy & | aUsePolicy, | |||
const TSecurityPolicy & | aManagementPolicy, | |||
EKeyAlgorithm | aAlgorithm, | |||
TInt | aAccessType, | |||
TBool | aNative, | |||
TTime | aStartDate, | |||
TTime | aEndDate, | |||
HBufC8 * | aPKCS8AttributeSet = NULL | |||
) | [static] |
Creates a CCTKeyInfo from constituents. This is called by the unified key store, and should not be called directly.
leave
KErrKeyUsage If the key usage flags are not valid or not consistent with the key algorithm.
leave
KErrKeyValidity If the validity start and end dates are specified but do not form a valid time period.
TKeyIdentifier aID | The SHA1 hash of the key |
TKeyUsagePKCS15 aUsage | The usage of the key |
TUint aSize | The size of the key in bytes |
MCTAuthenticationObject * aProtector | A protector object if the key is protected by a PIN. This may be NULL if the protector is not known. |
HBufC * aLabel | The label of the key (takes ownership). |
MCTToken & aToken | The token the key is in |
TInt aHandle | The object ID part of the object handle; an integer that is unique amongst keys in this token. |
const TSecurityPolicy & aUsePolicy | The security policy for key use |
const TSecurityPolicy & aManagementPolicy | The security policy for key management |
EKeyAlgorithm aAlgorithm | The key algorithm (RSA, DSA or Diffie-Hellman) |
TInt aAccessType | The access type of the key |
TBool aNative | Defines whether the key is native |
TTime aStartDate | The key validity start date |
TTime aEndDate | The key validity end date |
HBufC8 * aPKCS8AttributeSet = NULL | (optional) The DER encoded PKCS8 attribute set (takes ownership). |
IMPORT_C CCTKeyInfo * | NewL | ( | RReadStream & | aStream, |
MCTToken & | aToken | |||
) | [static] |
Creates a new KeyInfo from a stream.
leave
KErrKeyUsage If the key usage flags are not valid or not consistent with the key algorithm.
leave
KErrKeyValidity If the validity start and end dates are specified but do not form a valid time period.
RReadStream & aStream | The stream to read the key data from |
MCTToken & aToken | The token that the key is in |
MCTAuthenticationObject * | Protector | ( | ) | const [inline] |
The PIN (or other authentication object) that protects the key, or NULL if not set. This object is owned by key store.
void | SetProtector | ( | MCTAuthenticationObject & | aProtector | ) | [inline] |
Sets the authentication object for this key. The object's Release method will be called by the destructor, allowing for refence counting of auth objects to be implemented if desired.
MCTAuthenticationObject & aProtector |
operator TCTTokenObjectHandle | ( | ) | const [inline] |
The CT handle to this object.