# Path: SCException.py
# class SCNotImplemented (SCException):
# 	"""See SCException. Called if implementation is missing."""
# 
# 	def __init__(self, cls, function, reason):
# 		SCException.__init__(self, cls, function, reason)
# 
# class HFHException(SCException):
# 	"""See SCException. Called for exceptions during parsing header fields."""
# 
# 	def __init__(self, cls, function, reason):
# 		SCException.__init__(self, cls, function, reason)


from HeaderFieldHandler import HeaderFieldHandler
from SCException import SCNotImplemented, HFHException
from random import Random
import Log, Config
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with SIP Forum Test Framework; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# $Id: Wwwauthenticate.py,v 1.3 2004/03/19 18:38:44 lando Exp $
#

class Wwwauthenticate (HeaderFieldHandler):

	def __init__(self, value=None):
		HeaderFieldHandler.__init__(self)
		self.realm = None
		self.domain = None
		self.nonce = None
		self.algorithm = None
		self.opaque = None
		self.stale = None
		self.qop = None
		self.params = []
		if value is not None:
			self.parse(value)

	def __str__(self):
		return '[realm:\'' + str(self.realm) + '\', ' \
				+ 'domain:\'' + str(self.domain) + '\', ' \
				+ 'nonce:\'' + str(self.nonce) + '\', ' \
				+ 'algorithm:\'' + str(self.algorithm) + '\', ' \
				+ 'opaque:\'' + str(self.opaque) + '\', ' \

# Path: SCException.py
# class SCNotImplemented (SCException):
# 	"""See SCException. Called if implementation is missing."""
# 
# 	def __init__(self, cls, function, reason):
# 		SCException.__init__(self, cls, function, reason)
# 
# class HFHException(SCException):
# 	"""See SCException. Called for exceptions during parsing header fields."""
# 
# 	def __init__(self, cls, function, reason):
# 		SCException.__init__(self, cls, function, reason)


# Path: HFH/Wwwauthenticate.py
from HeaderFieldHandler import HeaderFieldHandler
from SCException import SCNotImplemented, HFHException
from random import Random
import Log, Config

# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with SIP Forum Test Framework; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# $Id: Wwwauthenticate.py,v 1.3 2004/03/19 18:38:44 lando Exp $
#

class Wwwauthenticate (HeaderFieldHandler):

	def __init__(self, value=None):
		HeaderFieldHandler.__init__(self)
		self.realm = None
		self.domain = None
		self.nonce = None
		self.algorithm = None
		self.opaque = None
		self.stale = None
		self.qop = None
		self.params = []
		if value is not None:
			self.parse(value)

	def __str__(self):
		return '[realm:\'' + str(self.realm) + '\', ' \
				+ 'domain:\'' + str(self.domain) + '\', ' \
				+ 'nonce:\'' + str(self.nonce) + '\', ' \
				+ 'algorithm:\'' + str(self.algorithm) + '\', ' \
				+ 'opaque:\'' + str(self.opaque) + '\', ' \

				+ 'stale:\'' + str(self.stale) + '\', ' \