epoc32/include/authserver/authtypes.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of the License "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 * Basic typedefs used by the Authentication Server
    16 *
    17 */
    18 
    19 
    20 /**
    21  @file 
    22  @publishedAll
    23  @released
    24 */
    25 
    26 #ifndef AUTHTYPES_H
    27 #define AUTHTYPES_H
    28 
    29 #include <e32cmn.h>
    30 
    31 namespace AuthServer
    32 {
    33 typedef TUint32 TIdentityId;
    34 typedef TUint32 TPluginId;
    35 
    36 typedef TUint32 TEntropy;
    37 typedef TUint32 TPercentage;
    38 
    39 /////////////
    40 // constants and enums 
    41 /////////////
    42 
    43 const TUint32 KUnknownPluginId = 0;
    44 const TUint32 KUnknownIdentity = 0;
    45 const TUid KAuthServerSecureId = { 0x102740FC };
    46 const TInt KMaxDescLen = 255;
    47 
    48 enum TAuthPluginType
    49     {
    50 	EAuthDefault   = 0,
    51     EAuthBiometric = 1,
    52     EAuthKnowledge = 64,
    53     EAuthToken     = 128,
    54 	EAuthPerformance = 192
    55     };
    56     
    57 enum TAuthTrainingStatus
    58     {
    59     EAuthUntrained    = 1,
    60     EAuthTrained      = 64,
    61     EAuthFullyTrained = 128,
    62     };
    63 
    64 /// Array types used by clients and server
    65 typedef RArray<TIdentityId>              RIdentityIdArray;
    66 typedef RArray<TPluginId>                RPluginIdArray;
    67 
    68 
    69 }   
    70 
    71 #endif // AUTHTYPES_H