2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Contains the list of error values that may be returned.
26 #ifndef AUTH_SRV_ERRS_H
27 #define AUTH_SRV_ERRS_H
32 Attempted to internalize an invalid authentication expression stream.
34 If this error occurs on the server side because the client
35 has sent an invalid externalization buffer they are panicked
36 with "AUTHSERVER 3", instead of being completed with this
39 This error should not occur if clients use the supplied
42 const TInt KErrAuthServInvalidInternalizeExpr = -10800;
45 Attempted to internalize an authentication expression stream
46 with an unsupported version.
48 The authentication server will complete an authentication
49 request with this value if the supplied stream has an
50 unsupported version number.
52 This error code is rare and is caused by sending a corrupt
53 externalized expression to the server, or if the expression
54 was internalized with an older version of the client code.
55 This error should not occur if clients use the supplied
58 const TInt KErrAuthServUnsupportedExprVersion = -10801;
61 An attempt was made to reference a plugin by id number and no such
64 const TInt KErrAuthServNoSuchPlugin = -10802;
68 An attempt was made to reference an identity by id number and no such
71 const TInt KErrAuthServNoSuchIdentity = -10803;
74 A plugin returns this on behalf of a user wanting to skip it.
76 const TInt KErrAuthServPluginCancelled = -10804;
79 A plugin returns this on behalf of a user wanting to completely quit the
82 const TInt KErrAuthServPluginQuit = -10805;
86 This error is reported when an operation is attempted for which an
87 authentication must have already been performed.
89 const TInt KErrAuthServAuthenticationRequired = -10806;
92 Attempted to add a new identity to the authentication
93 server database with an existing ID.
95 const TInt KErrAuthServIdentityAlreadyExists = -10807;
98 Attempted to set or retrieve a description for an identity,
99 or remove an identity which was not in the authentication database.
101 const TInt KErrAuthServIdentityNotFound = -10808;
104 Attempted to remove or retrieve the key info for
105 a training record that was not in the authentication
108 const TInt KErrAuthServTrainingNotFound = -10809;
111 This error is reported when the authserver has not been able to register a
112 new identity due to no plugins training successfully.
114 const TInt KErrAuthServRegistrationFailed = -10810;
118 This error is reported when an authclient attempts to remove the last
121 const TInt KErrAuthServCanNotRemoveLastIdentity = -10811;
125 This error is reported when an authclient attempts to remove the last
126 trained plugin for an identity.
128 const TInt KErrAuthServCanNotRemoveLastPlugin = -10812;
132 This error is reported when an attempt to use an inactive plugin is made.
134 const TInt KErrAuthServPluginNotActive = -10813;
137 Client attempted to create an identity with a description
138 longer than 255 characters, or to change an existing identity's
139 description to use more than 255 characters.
141 const TInt KErrAuthServDescTooLong = -10814;
144 This error is reported when the authentication strength alias
145 supplied by the client is not found in the authserver's
146 central repository file.
149 const TInt KErrUnknownAuthStrengthAlias = -10815;
152 This error is reported when an authentication strength in
153 the authserver's central repository file is undefined.
156 const TInt KErrAuthStrengthAliasNotDefined = -10816;
159 This error is reported when an alias string defining an
160 authentication strength in the authserver's central repository
161 file contains expression other than plugin Id, plugin Types
162 and operators ("& and "|").
165 const TInt KErrAuthServInvalidAliasStringExpression = -10817;
169 This error is reported when an authclient attempts to remove the default
172 const TInt KErrAuthServCanNotRemoveDefaultIdentity = KErrAuthServCanNotRemoveLastIdentity;
175 This error is reported when an authentication manager client attempts to
176 reset an identity and this may result in zero plugins registering the new identity data.
177 This can happen if a reset request is issued for all plugins registered for an identity
178 and none of the plugins are of knowledge type.
180 const TInt KErrAuthServResetMayLoseIdentity = -10818;
182 #endif // #ifndef AUTH_SRV_ERRS_H