cryptomgmtlibs/cryptotokenfw/inc_interfaces/MCTKeyStore_v2.h
changeset 8 35751d3474b7
parent 0 2c201484c85f
child 15 da2ae96f639b
equal deleted inserted replaced
2:675a964f4eb5 8:35751d3474b7
    15 * MCTKeystore.h
    15 * MCTKeystore.h
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 
    19 
    20 
       
    21 
       
    22 /**
    20 /**
    23  @file 
    21  @file 
    24  @internalTechnology
    22  @publishedPartner
       
    23  @released
    25 */
    24 */
    26  
    25  
    27 #ifndef __MCTKEYSTORE_H__
    26 #ifndef __MCTKEYSTORE_H__
    28 #define __MCTKEYSTORE_H__
    27 #define __MCTKEYSTORE_H__
    29 
    28 
    30 #include <securitydefs.h>
    29 #include <securitydefs.h>
    31 #include <mkeystore.h>
    30 #include <mkeystore.h>
    32 #include <s32file.h>
    31 #include <s32file.h>
    33 
    32 
    34 class MCTAuthenticationObject;
    33 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
       
    34 #include <mctkeystoreuids.h>
       
    35 #endif
    35 
    36 
    36 /** The UID of the filekey store */
    37 /** The UID of the filekey store */
    37 const TInt KTokenTypeFileKeystore = 0x101F7333;
    38 const TInt KTokenTypeFileKeystore = 0x101F7333;
    38 
    39 
    39 /** The UID of a key store interface */
    40 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    40 const TInt KInterfaceKeyStore = 0x101F7334;
       
    41 
    41 
    42 /** The type ID of CCTKeyInfo objects */
    42 /** The type ID of CCTKeyInfo objects */
    43 const TUid KKeyInfoUID = {0x101F5152};
    43 const TUid KKeyInfoUID = {0x101F5152};
    44 const TUid KRSARepudiableSignerUID = {0x101F7A3C};
       
    45 const TUid KDSARepudiableSignerUID = {0x101F7A3D};
       
    46 const TUid KPrivateDecryptorUID = {0x101F7A3E};
       
    47 const TUid KKeyAgreementUID = {0x101F7A3F};
       
    48 const TUid KNonRepudiationSignerUID = {0x101F7A40};
    44 const TUid KNonRepudiationSignerUID = {0x101F7A40};
    49 const TUid KKeyStoreAuthObjectUID = {0x101FE681};
    45 const TUid KKeyStoreAuthObjectUID = {0x101FE681};
       
    46 
       
    47 #endif
       
    48 
       
    49 class MCTAuthenticationObject;
    50 
    50 
    51 /**
    51 /**
    52  * Defines the interface for a read-only key store token.
    52  * Defines the interface for a read-only key store token.
    53  *
    53  *
    54  * All the details are defined in MKeyStore as they are shared by the unified
    54  * All the details are defined in MKeyStore as they are shared by the unified
    55  * key store.
    55  * key store.
    56  * 
    56  * 
    57  * The class adds no extra member functions or data. 
    57  * The class adds no extra member functions or data. 
    58  * 
    58  * 
    59  * @publishedPartner
       
    60  * @released
       
    61  */
    59  */
    62 class MCTKeyStore : public MCTTokenInterface, public MKeyStore
    60 class MCTKeyStore : public MCTTokenInterface, public MKeyStore
    63 	{
    61 	{
    64 	};
    62 	};
    65 
    63 
    66 /**
    64 /**
    67  * Base class for CCTKeyInfo.
    65  * Base class for CCTKeyInfo.
    68  *
    66  *
    69  * @publishedPartner
       
    70  * @released
       
    71  */
    67  */
    72 class CKeyInfoBase : protected CBase
    68 class CKeyInfoBase : protected CBase
    73 	{
    69 	{
    74 public:
    70 public:
    75 
    71 
   224 	};
   220 	};
   225 
   221 
   226 /**
   222 /**
   227  * Information about a key, as returned by MCTKeyStore::List.
   223  * Information about a key, as returned by MCTKeyStore::List.
   228  *
   224  *
   229  * @publishedPartner
       
   230  * @released
       
   231  */
   225  */
   232 class CCTKeyInfo : public CKeyInfoBase, public MCTTokenObject
   226 class CCTKeyInfo : public CKeyInfoBase, public MCTTokenObject
   233 	{
   227 	{
   234 public:
   228 public:
   235 
   229 
   236 	/**
   230 	/**
   237 	 * @internalTechnology
       
   238 	 * 
   231 	 * 
   239 	 * Creates a CCTKeyInfo from constituents.  This is called by the unified
   232 	 * Creates a CCTKeyInfo from constituents.  This is called by the unified
   240 	 * key store, and should not be called directly.
   233 	 * key store, and should not be called directly.
   241 	 *
   234 	 *
   242 	 * @param aID The SHA1 hash of the key
   235 	 * @param aID The SHA1 hash of the key
   362 
   355 
   363 /**
   356 /**
   364  * A filter to specify which keys should be returned from the store by
   357  * A filter to specify which keys should be returned from the store by
   365  * MCTKeyStore::List.
   358  * MCTKeyStore::List.
   366  *
   359  *
   367  * @publishedPartner
       
   368  * @released
       
   369  */
   360  */
   370 struct TCTKeyAttributeFilter
   361 struct TCTKeyAttributeFilter
   371 	{
   362 	{
   372 	enum TPolicyFilter
   363 	enum TPolicyFilter
   373 		{
   364 		{