epoc32/include/mw/siphttpdigestchallengeobserver2.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
/*
williamr@2
     2
* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     3
* All rights reserved.
williamr@2
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@2
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     8
*
williamr@2
     9
* Initial Contributors:
williamr@2
    10
* Nokia Corporation - initial contribution.
williamr@2
    11
*
williamr@2
    12
* Contributors:
williamr@2
    13
*
williamr@2
    14
* Description:
williamr@2
    15
* Name        : siphttpdigestchallengeobserver2.h
williamr@2
    16
* Part of     : SIP Client
williamr@2
    17
* Interface   : SDK API, SIP Client API
williamr@2
    18
* Version     : 1.0
williamr@2
    19
*
williamr@2
    20
*/
williamr@2
    21
williamr@2
    22
williamr@2
    23
williamr@2
    24
#ifndef MSIPHTTPDIGESTCHALLENGEOBSERVER2_H
williamr@2
    25
#define MSIPHTTPDIGESTCHALLENGEOBSERVER2_H
williamr@2
    26
williamr@2
    27
// INCLUDES
williamr@2
    28
#include <e32std.h>
williamr@2
    29
williamr@2
    30
// FORWARD DECLARATIONS
williamr@2
    31
class CSIPClientTransaction;
williamr@2
    32
class CSIPRefresh;
williamr@2
    33
williamr@2
    34
// CLASS DECLARATION
williamr@2
    35
/**
williamr@2
    36
* @publishedAll
williamr@2
    37
* @released
williamr@2
    38
*
williamr@2
    39
* The user should implement this interface if it intends to
williamr@2
    40
* provide HTTP Digest credentials upon received challenges
williamr@2
    41
* from the SIP servers on the signaling path.
williamr@2
    42
* The user should provide credentials or ignore the challenge
williamr@2
    43
* using functions defined in CSIPHttpDigest class.
williamr@2
    44
*
williamr@4
    45
* Applications are encouraged to use implement below interface which
williamr@4
    46
* provides functions to extract multiple challenges.
williamr@4
    47
* MSIPHttpDigestChallengeObserver2 class is compliant to RFC 3261
williamr@4
    48
*
williamr@2
    49
*  @lib n/a
williamr@2
    50
*/
williamr@2
    51
class MSIPHttpDigestChallengeObserver2
williamr@2
    52
	{
williamr@2
    53
    public: // New functions
williamr@2
    54
		/**
williamr@2
    55
		* A SIP request resulted in 401/407 response that contains
williamr@2
    56
		* 1..n challenges. 
williamr@2
    57
		* The challenges can be obtained from Proxy-Authenticate- and/or
williamr@2
    58
		* WWW-Authenticate-headers in the CSIPResponseElements
williamr@2
    59
		* attached to the CSIPClientTransaction.
williamr@2
    60
		* The user must call CSIPHttpDigest::SetCredentialsL or
williamr@2
    61
		* CSIPHttpDigest::IgnoreChallenge for each challenge.
williamr@2
    62
		*
williamr@2
    63
		* @param aTransaction transaction which was completed with 
williamr@2
    64
		*        a response containing HTTP Digest challenge.
williamr@2
    65
		*/
williamr@2
    66
		virtual void ChallengeReceived(
williamr@2
    67
		    const CSIPClientTransaction& aTransaction) = 0;
williamr@2
    68
williamr@2
    69
		/**
williamr@2
    70
		* A refreshed SIP request resulted in 401/407 response that contains
williamr@2
    71
		* 1..n challenges.
williamr@2
    72
		* The challenges can be obtained from Proxy-Authenticate- and/or
williamr@2
    73
		* WWW-Authenticate-headers in the CSIPResponseElements
williamr@2
    74
		* attached to the CSIPClientTransaction attached to the CSIPRefresh.
williamr@2
    75
		* The user must call CSIPHttpDigest::SetCredentialsL or
williamr@2
    76
		* CSIPHttpDigest::IgnoreChallenge for each challenge.		 
williamr@2
    77
		*
williamr@2
    78
		* @param aRefresh the refresh for which a transaction completed with 
williamr@2
    79
		*        a response containing HTTP Digest challenge.
williamr@2
    80
		*/		    
williamr@2
    81
		virtual void ChallengeReceived(
williamr@2
    82
		    const CSIPRefresh& aRefresh) = 0;		    
williamr@2
    83
	};
williamr@2
    84
williamr@2
    85
#endif // MSIPHTTPDIGESTCHALLENGEOBSERVER2_H