obex/obexprotocol/obex/inc/authentication.h
changeset 54 4dc88a4ac6f4
parent 52 866b4af7ffbe
child 57 f6055a57ae18
equal deleted inserted replaced
52:866b4af7ffbe 54:4dc88a4ac6f4
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef AUTHENTICATION_H
       
    22 #define AUTHENTICATION_H
       
    23 
       
    24 #include <e32std.h>
       
    25 #include <e32base.h>
       
    26 #include <obex.h>
       
    27 #include <obex/internal/obextransportconstants.h>
       
    28 
       
    29 const TUid KObexAuthenticationNotifierUid = {0x12341234};	//fixme
       
    30 
       
    31 class CMD5;
       
    32 
       
    33 NONSHARABLE_CLASS(CObexAuthenticator) : public CBase
       
    34 	{
       
    35 public:
       
    36 	static CObexAuthenticator* NewL();
       
    37 	~CObexAuthenticator();
       
    38 	TInt GenerateNonce(TDes8& aNonce);
       
    39 	void GenerateResponseL(const TDesC8& aPasswd, const TNonce& aNonce, TRequestDigest& aRequestDigest);
       
    40 	void ChallengeResponseL(const TDesC8& aPasswd, const TNonce& aNonce, const TRequestDigest& aRequestDigest);
       
    41 private:
       
    42 	void ConstructL();
       
    43 	CObexAuthenticator();
       
    44 private:
       
    45 	CMD5* iMD5;
       
    46 	TInt64 iSeed;
       
    47 	};
       
    48 
       
    49 #endif // AUTHENTICATION_H