2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Name : sipwwwauthenticateheader.h
23 #ifndef CSIPWWWAUTHENTICATEHEADER_H
24 #define CSIPWWWAUTHENTICATEHEADER_H
27 #include "sipauthenticateheaderbase.h"
34 * Class for SIP WWW-Authenticate-header manipulation.
38 class CSIPWWWAuthenticateHeader : public CSIPAuthenticateHeaderBase
40 public: // Constructors and destructor
43 * Constructs a CSIPWWWAuthenticateHeader from textual representation
44 * of the header's value part.
45 * @param aValue a value part of a "WWW-Authenticate"-header
46 * @return a new instance of CSIPWWWAuthenticateHeader
48 IMPORT_C static CSIPWWWAuthenticateHeader*
49 DecodeL(const TDesC8& aValue);
52 * Creates a new instance of CSIPWWWAuthenticateHeader
53 * @return a new instance of CSIPWWWAuthenticateHeader
55 IMPORT_C static CSIPWWWAuthenticateHeader*
56 NewL(RStringF aAuthScheme);
59 * Creates a new instance of CSIPWWWAuthenticateHeader
60 * @return a new instance of CSIPWWWAuthenticateHeader
62 IMPORT_C static CSIPWWWAuthenticateHeader*
63 NewLC(RStringF aAuthScheme);
68 IMPORT_C ~CSIPWWWAuthenticateHeader();
70 public: // From CSIPHeaderBase
73 * From CSIPHeaderBase CloneL
75 IMPORT_C CSIPHeaderBase* CloneL() const;
78 * From CSIPHeaderBase Name
80 IMPORT_C RStringF Name() const;
82 public: // New functions, for internal use
84 static RPointerArray<CSIPHeaderBase> BaseDecodeL(const TDesC8& aValue);
85 static CSIPHeaderBase* InternalizeValueL(RReadStream& aReadStream);
87 private: // Constructors
89 CSIPWWWAuthenticateHeader();
91 private: // For testing purposes
93 friend class CSIPWWWAuthenticateHeaderTest;
97 #endif // CSIPWWWAUTHENTICATEHEADER_H