williamr@4: /* williamr@4: * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@4: * All rights reserved. williamr@4: * This component and the accompanying materials are made available williamr@4: * under the terms of the License "Eclipse Public License v1.0" williamr@4: * which accompanies this distribution, and is available williamr@4: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@4: * williamr@4: * Initial Contributors: williamr@4: * Nokia Corporation - initial contribution. williamr@4: * williamr@4: * Contributors: williamr@4: * williamr@4: * Description: williamr@4: * Authserver publish and subscribe properties. williamr@4: * williamr@4: */ williamr@4: williamr@4: williamr@4: /** williamr@4: @file williamr@4: @publishedAll williamr@4: @released williamr@4: */ williamr@4: williamr@4: #ifndef ASPUBSUBDEFS_H williamr@4: #define ASPUBSUBDEFS_H williamr@4: williamr@4: namespace AuthServer williamr@4: { williamr@4: /** williamr@4: * Used to write to and read from the publish and subscribe property williamr@4: * KUidAuthServerLastAuth. williamr@4: * williamr@4: * @see KUidAuthServerLastAuth williamr@4: **/ williamr@4: NONSHARABLE_STRUCT(TLastAuth) williamr@4: { williamr@4: TLastAuth() { Mem::FillZ(this, sizeof(TLastAuth)); } williamr@4: /// The identities id number or KUnknownIdentity williamr@4: TIdentityId iId; williamr@4: /// The time of the authentication, 0 if unknown williamr@4: TTime iAuthTime; williamr@4: /// The highest number of combinations of the authentication methods williamr@4: /// used williamr@4: TEntropy iMaxCombinations; williamr@4: /// the lowest false positive rate of the methods used williamr@4: TPercentage iFalsePositiveRate; williamr@4: /// the lowest false negative rate of the methods used williamr@4: TPercentage iFalseNegativeRate; williamr@4: /// the number of factors (i.e. plugins) combined to make the williamr@4: /// authentication williamr@4: TInt32 iNumFactors; williamr@4: }; williamr@4: williamr@4: /** williamr@4: * This is the publish and subscribe property used by the Authentication williamr@4: * Server to publish the details of the last authentication. The williamr@4: * value is of type TLastAuth and can be retrieved using code such as: williamr@4: * williamr@4: * TLastAuth lastAuth; williamr@4: * TPckg authPkg(lastAuth); williamr@4: * RProperty::Get(KAuthServerSecureId, KUidAuthServerLastAuth, authPkg); williamr@4: * williamr@4: * williamr@4: * The property is published each time an authentication or deauthentication williamr@4: * is made, even if the same identity is authenticated. To be notified only williamr@4: * when the identity changes, subscribe to KUidAuthServerAuthChangeEvent. williamr@4: * williamr@4: */ williamr@4: const TUint KUidAuthServerLastAuth = { 0x10281843 }; williamr@4: williamr@4: williamr@4: /** williamr@4: * This is the publish and subscribe property used by the Authentication williamr@4: * Server to notify subscribers of a change of authenticated identity. The williamr@4: * published value is of type TUint and will contain the id number of the last williamr@4: * identity authenticated. williamr@4: * williamr@4: * The property is published only when the identity changes, reauthentication williamr@4: * with a different method will not result in notification. williamr@4: * williamr@4: */ williamr@4: const TUint KUidAuthServerAuthChangeEvent = { 0x10281845 }; williamr@4: williamr@4: } williamr@4: williamr@4: #endif /*ASPUBSUBDEFS_H*/ williamr@4: