senwssecurityheader.h

Go to the documentation of this file.
00001 /*
00002 * ==============================================================================
00003 *  Name        : SenWsSecurityHeader.h
00004 *  Part of     : Web Services Framework / Utils
00005 *  Interface   : 
00006 *  Description : CSenWsSecurityHeader represents security header functionality
00007 *                according to oasis wss spesifications (2004/01)
00008 *  Version     :
00009 *
00010 *  Copyright © 2002-2005 Nokia. All rights reserved.
00011 *  This material, including documentation and any related 
00012 *  computer programs, is protected by copyright controlled by 
00013 *  Nokia. All rights are reserved. Copying, including 
00014 *  reproducing, storing, adapting or translating, any 
00015 *  or all of this material requires the prior written consent of 
00016 *  Nokia. This material also contains confidential 
00017 *  information which may not be disclosed to others without the 
00018 *  prior written consent of Nokia.
00019 * ==============================================================================
00020 */
00021 
00022 #ifndef SEN_WS_SECURITY_HEADER_H
00023 #define SEN_WS_SECURITY_HEADER_H
00024 
00025 //  INCLUDES
00026 #include <SenBaseFragment.h>
00027 
00028 // CONSTANTS
00029 _LIT8(KSecurityName, "Security");
00030 _LIT8(KSecurityXmlNs, "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd");
00031 _LIT8(KSecurityXmlNsPrefix, "wsse");
00032 
00033 // FORWARD DECLARATIONS
00034 class CSenIdentityProvider;
00035 
00036 // CLASS DECLARATION
00037 
00044 class CSenWsSecurityHeader : public CSenBaseFragment
00045     {
00046     public:  // Constructors and destructor
00047         
00051             IMPORT_C static CSenWsSecurityHeader* NewL();
00052             
00057                 IMPORT_C static CSenWsSecurityHeader* NewL(const TDesC8& aData);
00058 
00062             IMPORT_C virtual ~CSenWsSecurityHeader();
00063 
00064         // New functions
00065         
00086                 IMPORT_C HBufC8* UsernameTokenL(CSenIdentityProvider &aIdentityProvider);
00087 
00098                 IMPORT_C static TInt UsernameTokenL(const TDesC8& aUsername,
00099                                                                                         HBufC8*& aToken);
00106                 IMPORT_C virtual TPtrC8 XmlNs();
00107                 
00114                 IMPORT_C virtual TPtrC8 XmlNsPrefix();    
00115         
00116     protected:  
00117             
00121             IMPORT_C CSenWsSecurityHeader();
00122             
00126             IMPORT_C void BaseConstructL();
00127         
00128         // Functions from base classes
00129                 
00136                 IMPORT_C void BaseConstructL(const TDesC8& aData);
00137     };
00138 
00139 // SEN_WS_SECURITY_HEADER_H
00140 #endif
00141 
00142 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top