williamr@2: /* williamr@2: * Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@2: * under the terms of the License "Eclipse Public License v1.0" williamr@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: @file williamr@2: @publishedPartner williamr@2: @released williamr@2: */ williamr@2: williamr@2: #ifndef __TCTTOKENTYPEATTRIBUTE_H__ williamr@2: #define __TCTTOKENTYPEATTRIBUTE_H__ williamr@2: williamr@2: /** williamr@2: * Attribute UIDs williamr@2: * @since v7.0 williamr@2: */ williamr@2: williamr@2: /** williamr@2: * A UID representing an attribute type. williamr@2: * williamr@2: * It has a corresponding TCTTokenTypeAttribute value, which is a boolean, williamr@2: * that indicates whether the token is implemented in software. williamr@2: */ williamr@2: const TUid KCTSoftware = {0x101F527B}; williamr@2: williamr@2: /** williamr@2: * A UID representing an attribute type. williamr@2: * williamr@2: * It has a corresponding TCTTokenTypeAttribute value, which is boolean, williamr@2: * that indicates whether the token is removable. williamr@2: */ williamr@2: const TUid KCTRemovable = {0x101F527C}; williamr@2: williamr@2: /** williamr@2: * A UID representing an attribute type. williamr@2: * williamr@2: * It has a corresponding TCTTokenTypeAttribute value, which is boolean, williamr@2: * that indicates whether the token type provides its own access control. williamr@2: */ williamr@2: const TUid KCTAccessControlled = {0x101F527D}; williamr@2: williamr@2: /** williamr@2: * A UID representing an attribute type. williamr@2: * williamr@2: * It has a corresponding TCTTokenTypeAttribute value, which is an integer, williamr@2: * that represents the maximum number of tokens of this type. williamr@2: * williamr@2: * For example, if the token type is a WIM-card-hardware token and the device has two williamr@2: * card readers, the maximum number of tokens of this type is 2. williamr@2: */ williamr@2: const TUid KCTMaxTokenCount = {0x101F527E}; williamr@2: williamr@2: /** williamr@2: * A UID representing an attribute type. williamr@2: * williamr@2: * It has a corresponding TCTTokenTypeAttribute value, which is an integer, williamr@2: * that represents the minimum number of tokens of this type. williamr@2: * williamr@2: * For example, if the token type is a WIM-card-hardware token, the minimum number of williamr@2: * tokens of this type is 0). williamr@2: */ williamr@2: const TUid KCTMinTokenCount = {0x101F527F}; williamr@2: williamr@2: /** williamr@2: * Arbitrary attributes can be stored as UID/Value pairs. williamr@2: * williamr@2: * This allows any attributes that can be represented as 32 bit integers to be williamr@2: * associated with token types. williamr@2: * williamr@2: * It consists of a UID to identify the type of the attribute and an unsigned williamr@2: * integer to hold the data. For Boolean attributes, 0 means false and a williamr@2: * positive integer means true. williamr@2: * williamr@2: * @since v7.0 williamr@2: */ williamr@2: struct TCTTokenTypeAttribute williamr@2: { williamr@2: /** The UID representing the attribute type. */ williamr@2: TUid iUID; williamr@2: /** The value of the attribute. */ williamr@2: TInt iVal; williamr@2: }; williamr@2: williamr@2: #endif // __TCTTOKENTYPEATTRIBUTE_H__