realtimenetprots/sipfw/SIP/sipapi/api/siphttpdigestchallengeobserver2.h
author Petteri Saari <petteri.saari@digia.com>
Thu, 02 Dec 2010 15:23:48 +0200
branchMSRP_FrameWork
changeset 60 7634585a4347
parent 15 8248b03a2669
permissions -rw-r--r--
This release addresses the following: - Multiple concurrent file transfer bug fixes. i.e. one device is concurrently receiving multiple files from multiple devices

/*
* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
* Name        : siphttpdigestchallengeobserver2.h
* Part of     : SIP Client
* Interface   : SDK API, SIP Client API
* Version     : 1.0
*
*/



#ifndef MSIPHTTPDIGESTCHALLENGEOBSERVER2_H
#define MSIPHTTPDIGESTCHALLENGEOBSERVER2_H

// INCLUDES
#include <e32std.h>

// FORWARD DECLARATIONS
class CSIPClientTransaction;
class CSIPRefresh;

// CLASS DECLARATION
/**
* @publishedAll
* @released
*
* The user should implement this interface if it intends to
* provide HTTP Digest credentials upon received challenges
* from the SIP servers on the signaling path.
* The user should provide credentials or ignore the challenge
* using functions defined in CSIPHttpDigest class.
*
* Applications are encouraged to use implement below interface which
* provides functions to extract multiple challenges.
* MSIPHttpDigestChallengeObserver2 class is compliant to RFC 3261
*
*  @lib n/a
*/
class MSIPHttpDigestChallengeObserver2
	{
    public: // New functions
		/**
		* A SIP request resulted in 401/407 response that contains
		* 1..n challenges. 
		* The challenges can be obtained from Proxy-Authenticate- and/or
		* WWW-Authenticate-headers in the CSIPResponseElements
		* attached to the CSIPClientTransaction.
		* The user must call CSIPHttpDigest::SetCredentialsL or
		* CSIPHttpDigest::IgnoreChallenge for each challenge.
		*
		* @param aTransaction transaction which was completed with 
		*        a response containing HTTP Digest challenge.
		*/
		virtual void ChallengeReceived(
		    const CSIPClientTransaction& aTransaction) = 0;

		/**
		* A refreshed SIP request resulted in 401/407 response that contains
		* 1..n challenges.
		* The challenges can be obtained from Proxy-Authenticate- and/or
		* WWW-Authenticate-headers in the CSIPResponseElements
		* attached to the CSIPClientTransaction attached to the CSIPRefresh.
		* The user must call CSIPHttpDigest::SetCredentialsL or
		* CSIPHttpDigest::IgnoreChallenge for each challenge.		 
		*
		* @param aRefresh the refresh for which a transaction completed with 
		*        a response containing HTTP Digest challenge.
		*/		    
		virtual void ChallengeReceived(
		    const CSIPRefresh& aRefresh) = 0;		    
	};

#endif // MSIPHTTPDIGESTCHALLENGEOBSERVER2_H