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 * CIdentity declaration
29 #include "authserver/authtypes.h"
30 #include "authserver/protectionkey.h"
35 * CIdentity is an client side class of the authentication server.
36 * CIdentity is returned as the result of an authentication.
39 class CIdentity : public CBase
43 IMPORT_C static CIdentity* NewL(TIdentityId aId,
47 IMPORT_C static CIdentity* NewLC(TIdentityId aId,
51 IMPORT_C static CIdentity* NewL(RReadStream& aStream);
52 IMPORT_C static CIdentity* NewLC(RReadStream& aStream);
56 IMPORT_C TIdentityId Id() const;
58 IMPORT_C const CProtectionKey& Key() const;
60 IMPORT_C TDesC& String() const;
62 IMPORT_C void ExternalizeL(RWriteStream& s) const;
63 IMPORT_C static CIdentity* InternalizeL(RReadStream& s);
66 void ConstructL(CProtectionKey* aKey,
69 CIdentity(TIdentityId aId);