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: * Contains the list of error values that may be returned. 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 AUTH_SRV_ERRS_H williamr@4: #define AUTH_SRV_ERRS_H williamr@4: williamr@4: #include williamr@4: williamr@4: /** williamr@4: Attempted to internalize an invalid authentication expression stream. williamr@4: williamr@4: If this error occurs on the server side because the client williamr@4: has sent an invalid externalization buffer they are panicked williamr@4: with "AUTHSERVER 3", instead of being completed with this williamr@4: error code. williamr@4: williamr@4: This error should not occur if clients use the supplied williamr@4: RAuthClient API. williamr@4: */ williamr@4: const TInt KErrAuthServInvalidInternalizeExpr = -10800; williamr@4: williamr@4: /** williamr@4: Attempted to internalize an authentication expression stream williamr@4: with an unsupported version. williamr@4: williamr@4: The authentication server will complete an authentication williamr@4: request with this value if the supplied stream has an williamr@4: unsupported version number. williamr@4: williamr@4: This error code is rare and is caused by sending a corrupt williamr@4: externalized expression to the server, or if the expression williamr@4: was internalized with an older version of the client code. williamr@4: This error should not occur if clients use the supplied williamr@4: RAuthClient API. williamr@4: */ williamr@4: const TInt KErrAuthServUnsupportedExprVersion = -10801; williamr@4: williamr@4: /** williamr@4: An attempt was made to reference a plugin by id number and no such williamr@4: plugin exists williamr@4: **/ williamr@4: const TInt KErrAuthServNoSuchPlugin = -10802; williamr@4: williamr@4: williamr@4: /** williamr@4: An attempt was made to reference an identity by id number and no such williamr@4: identity exists williamr@4: **/ williamr@4: const TInt KErrAuthServNoSuchIdentity = -10803; williamr@4: williamr@4: /** williamr@4: A plugin returns this on behalf of a user wanting to skip it. williamr@4: **/ williamr@4: const TInt KErrAuthServPluginCancelled = -10804; williamr@4: williamr@4: /** williamr@4: A plugin returns this on behalf of a user wanting to completely quit the williamr@4: current operation. williamr@4: **/ williamr@4: const TInt KErrAuthServPluginQuit = -10805; williamr@4: williamr@4: williamr@4: /** williamr@4: This error is reported when an operation is attempted for which an williamr@4: authentication must have already been performed. williamr@4: **/ williamr@4: const TInt KErrAuthServAuthenticationRequired = -10806; williamr@4: williamr@4: /** williamr@4: Attempted to add a new identity to the authentication williamr@4: server database with an existing ID. williamr@4: */ williamr@4: const TInt KErrAuthServIdentityAlreadyExists = -10807; williamr@4: williamr@4: /** williamr@4: Attempted to set or retrieve a description for an identity, williamr@4: or remove an identity which was not in the authentication database. williamr@4: */ williamr@4: const TInt KErrAuthServIdentityNotFound = -10808; williamr@4: williamr@4: /** williamr@4: Attempted to remove or retrieve the key info for williamr@4: a training record that was not in the authentication williamr@4: database. williamr@4: */ williamr@4: const TInt KErrAuthServTrainingNotFound = -10809; williamr@4: williamr@4: /** williamr@4: This error is reported when the authserver has not been able to register a williamr@4: new identity due to no plugins training successfully. williamr@4: **/ williamr@4: const TInt KErrAuthServRegistrationFailed = -10810; williamr@4: williamr@4: williamr@4: /** williamr@4: This error is reported when an authclient attempts to remove the last williamr@4: identity. williamr@4: **/ williamr@4: const TInt KErrAuthServCanNotRemoveLastIdentity = -10811; williamr@4: williamr@4: williamr@4: /** williamr@4: This error is reported when an authclient attempts to remove the last williamr@4: trained plugin for an identity. williamr@4: **/ williamr@4: const TInt KErrAuthServCanNotRemoveLastPlugin = -10812; williamr@4: williamr@4: williamr@4: /** williamr@4: This error is reported when an attempt to use an inactive plugin is made. williamr@4: **/ williamr@4: const TInt KErrAuthServPluginNotActive = -10813; williamr@4: williamr@4: /** williamr@4: Client attempted to create an identity with a description williamr@4: longer than 255 characters, or to change an existing identity's williamr@4: description to use more than 255 characters. williamr@4: */ williamr@4: const TInt KErrAuthServDescTooLong = -10814; williamr@4: williamr@4: /** williamr@4: This error is reported when the authentication strength alias williamr@4: supplied by the client is not found in the authserver's williamr@4: central repository file. williamr@4: */ williamr@4: williamr@4: const TInt KErrUnknownAuthStrengthAlias = -10815; williamr@4: williamr@4: /** williamr@4: This error is reported when an authentication strength in williamr@4: the authserver's central repository file is undefined. williamr@4: */ williamr@4: williamr@4: const TInt KErrAuthStrengthAliasNotDefined = -10816; williamr@4: williamr@4: /** williamr@4: This error is reported when an alias string defining an williamr@4: authentication strength in the authserver's central repository williamr@4: file contains expression other than plugin Id, plugin Types williamr@4: and operators ("& and "|"). williamr@4: */ williamr@4: williamr@4: const TInt KErrAuthServInvalidAliasStringExpression = -10817; williamr@4: williamr@4: williamr@4: /** williamr@4: This error is reported when an authclient attempts to remove the default williamr@4: identity. williamr@4: */ williamr@4: const TInt KErrAuthServCanNotRemoveDefaultIdentity = KErrAuthServCanNotRemoveLastIdentity; williamr@4: williamr@4: /** williamr@4: This error is reported when an authentication manager client attempts to williamr@4: reset an identity and this may result in zero plugins registering the new identity data. williamr@4: This can happen if a reset request is issued for all plugins registered for an identity williamr@4: and none of the plugins are of knowledge type. williamr@4: */ williamr@4: const TInt KErrAuthServResetMayLoseIdentity = -10818; williamr@4: williamr@4: #endif // #ifndef AUTH_SRV_ERRS_H williamr@4: