#NEWLINE# def __init__( self , serv_type , host , serv_name , username , password ) : #NEWLINE# #INDENT# self . username = username #NEWLINE# self . password = password #NEWLINE# self . defaultRealm = host #NEWLINE# self . digest_uri = ( '%s/%s' % ( serv_type , host ) ) #NEWLINE# if ( serv_name is not None ) : #NEWLINE# #INDENT# self . digest_uri += ( '/%s' % serv_name )