williamr@2: /*
williamr@2: * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2: * All rights reserved.
williamr@2: * This component and the accompanying materials are made available
williamr@2: * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
williamr@2: * which accompanies this distribution, and is available
williamr@2: * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
williamr@2: *
williamr@2: * Initial Contributors:
williamr@2: * Nokia Corporation - initial contribution.
williamr@2: *
williamr@2: * Contributors:
williamr@2: *
williamr@2: * Description:
williamr@2: * Name        : siphttpdigestchallengeobserver.h
williamr@2: * Part of     : SIP Client
williamr@2: * Interface   : SDK API, SIP Client API
williamr@2: * Version     : 1.0
williamr@2: *
williamr@2: */
williamr@2: 
williamr@2: 
williamr@2: 
williamr@2: #ifndef MSIPHTTPDIGESTCHALLENGEOBSERVER_H
williamr@2: #define MSIPHTTPDIGESTCHALLENGEOBSERVER_H
williamr@2: 
williamr@2: // FORWARD DECLARATIONS
williamr@2: 
williamr@2: // CLASS DECLARATION
williamr@2: 
williamr@2: /**
williamr@2: * @publishedAll
williamr@2: * @released
williamr@2: *
williamr@2: * The user must implement this interface if it intends to
williamr@2: * provide HTTP Digest credentials upon received challenges
williamr@2: * from the SIP servers on the signaling path.
williamr@2: * The user should provide credentials or ignore the challenge
williamr@2: * using functions defined in TSIPHttpDigest class.
williamr@2: *
williamr@2: *  @lib n/a
williamr@2: */
williamr@2: class MSIPHttpDigestChallengeObserver
williamr@2: 	{
williamr@2:     public: // New functions
williamr@2: 		/**
williamr@2: 		* SIP request resulted in 401/407 response that contains
williamr@2: 		* a challenge.
williamr@2: 		*
williamr@2: 		* @param aRealm a realm for which the challenge was received
williamr@2: 		*/
williamr@2: 		virtual void ChallengeReceived(const TDesC8& aRealm) = 0;
williamr@2: 	};
williamr@2: 
williamr@2: #endif