webservices/idwsfplugin/inc/idwsfsecurityheader.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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: Header declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef IDWSFSECURITYHEADER_H
       
    26 #define IDWSFSECURITYHEADER_H
       
    27 
       
    28 // INCLUDES
       
    29 #include "SenWsSecurityHeader.h"
       
    30 
       
    31 // CONSTANTS
       
    32 _LIT8(KSecurityDraftXmlns, "http://schemas.xmlsoap.org/ws/2003/06/secext");
       
    33 _LIT8(KSecurityDraftXmlnsPrefix, "wsse");
       
    34 
       
    35 // CLASS DECLARATION
       
    36 class CIdWsfSecurityHeader : public CSenWsSecurityHeader
       
    37     {
       
    38     public: // Constructors and destructor
       
    39     
       
    40         static CIdWsfSecurityHeader* NewL();
       
    41         static CIdWsfSecurityHeader* NewL(const TDesC8& aData);
       
    42         virtual ~CIdWsfSecurityHeader();
       
    43 
       
    44         // New functions
       
    45         
       
    46         virtual TPtrC8 XmlNs();
       
    47         virtual TPtrC8 XmlNsPrefix();
       
    48         static HBufC8* UsernameToken8L(CSenIdentityProvider &aIdentityProvider);
       
    49         static TInt UsernameTokenL(const TDesC8& username, HBufC8*& aToken);
       
    50 
       
    51     protected:
       
    52     
       
    53         /**
       
    54         * C++ default constructor.
       
    55         */
       
    56         CIdWsfSecurityHeader();
       
    57     };
       
    58 
       
    59 #endif // IDWSFSECURITYHEADER_H
       
    60 
       
    61 // End of File