xmlsecurityengine/xmlsecwrapper/inc/xmlsecwkeymanager.h
changeset 0 e35f40988205
equal deleted inserted replaced
-1:000000000000 0:e35f40988205
       
     1 /*
       
     2 * Copyright (c) 2009 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: Key manager class.       
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_KEYMANAGER_H
       
    19 #define C_KEYMANAGER_H
       
    20     
       
    21 /**
       
    22  * Class that contains key manager.
       
    23  *
       
    24  * Class allows application to have only one key menager.
       
    25  * Class should be used internal.
       
    26  *
       
    27  * @lib XmlSecWrapper.dll
       
    28  * @since S60 v3.2
       
    29  */
       
    30 class CXmlSecKeyManager : public CBase
       
    31     {
       
    32 
       
    33 public:
       
    34     /**
       
    35      * Gets instance of key manager.
       
    36      *
       
    37      * @since S60 v3.2
       
    38      * @return Key manager instance.
       
    39      */
       
    40     LOCAL_C CXmlSecKeyManager* GetInstanceL();
       
    41     
       
    42     /**
       
    43      * Gets pointer to XmlSec key manager.
       
    44      *
       
    45      * @since S60 v3.2
       
    46      * @return Key manager pointer.
       
    47      */
       
    48     xmlSecKeysMngr* GetKeyManagerPtr();
       
    49     
       
    50     /**
       
    51      * Destructor.
       
    52      *
       
    53      * @since S60 v3.2
       
    54      */
       
    55     virtual ~CXmlSecKeyManager();
       
    56 
       
    57 private:
       
    58     /**
       
    59      * Constructor.
       
    60      *
       
    61      * @since S60 v3.2
       
    62      */
       
    63     CXmlSecKeyManager();
       
    64     
       
    65     /**
       
    66      * Second phase constructor.
       
    67      *
       
    68      * @since S60 v3.2
       
    69      */
       
    70     void ConstructL();
       
    71 
       
    72 private:
       
    73     /** 
       
    74      * XmlSec key manager pointer 
       
    75      */
       
    76     xmlSecKeysMngr* iKeyManager;
       
    77     };
       
    78     
       
    79 #endif // C_KEYMANAGER_H