IMPSengine/engsrv/inc/impsdigestbytes.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 * helper class for digital schema data.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef TImpsDigestBytes_H
       
    20 #define TImpsDigestBytes_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <hash.h>
       
    24 #include "impscommonenums.h"
       
    25 #include "impsdataaccessor.h"
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 class TImpsDigestBytes
       
    30     {
       
    31     public:
       
    32         /**
       
    33         * C++ default constructor.
       
    34         */
       
    35         TImpsDigestBytes();
       
    36 
       
    37         /**
       
    38         * Creates base64 encoded bytes based on MD5 hash of password and nonce.
       
    39         * @param aAc data accessor
       
    40         * @param aSchema schema - future option
       
    41         * @param aPassword password
       
    42         * @param aNonce nonce
       
    43         */
       
    44         void CreateDigestBytesL ( MImpsDataAccessor* aAc,
       
    45                                   TImpsDigestSchema aSchema,
       
    46                                   const TDesC& aPassword,
       
    47                                   const TDesC8& aNonce );
       
    48 
       
    49         /**
       
    50         * Creates digest bytes.
       
    51         * AOL spesific
       
    52         * @param aAc data accessor
       
    53         * @param aSchema schema - future option
       
    54         * @param aPassword password
       
    55         * @param aNonce nonce
       
    56         * @param aClientId clientID
       
    57         * @param aKey1 AOL Key 1
       
    58         * @param aKey2 AOL Key 2
       
    59         */
       
    60         void CreateAolDigestBytesL ( MImpsDataAccessor* aAc,
       
    61                                      TImpsDigestSchema aSchema,
       
    62                                      const TDesC& aPassword,
       
    63                                      const TDesC8& aNonce,
       
    64                                      const TDesC& aClientId,
       
    65                                      HBufC* aKey1,
       
    66                                      HBufC* aKey2 );
       
    67     };
       
    68 
       
    69 #endif