Package httxlib :: Module httxpassmanager :: Class HttxPassManager
[hide private]
[frames] | no frames]

Class HttxPassManager

source code

           object --+    
                    |    
httxobject.HttxObject --+
                        |
                       HttxPassManager
Known Subclasses:

An object manages username and password for url and realms with locking semantics to be used in HttxOptions

Instance Methods [hide private]
 
__init__(self)
Constructor.
source code
HttxPassManager
__deepcopy__(self, memo)
Deepcopy support.
source code
 
add_password(self, realm, url, user, passwd)
Stub replica for HTTPPasswordManagerWithDefaultRealm to add a username and a password for a real, url combination
source code
tuple
find_user_password(self, realm, url)
Stub replica for HTTPPasswordManagerWithDefaultRealm to retrieve username, password for the given realm and url
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
HTTPPasswordMgrWithDefaultRealm passmanager
storage for username, password credentials

Inherited from httxobject.HttxObject: lock

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Constructor. It delegates construction to the base class HttxObject and initializes the member variables

Overrides: object.__init__

__deepcopy__(self, memo)

source code 

Deepcopy support.

Parameters:
  • memo (dict) - standard __deepcopy__ parameter to avoid circular references
Returns: HttxPassManager
a cloned object

add_password(self, realm, url, user, passwd)

source code 

Stub replica for HTTPPasswordManagerWithDefaultRealm to add a username and a password for a real, url combination

Parameters:
  • realm (str|None) - where the credentials should be applied None is a catch-all value
  • url (str) - base url for application of username, password if realm matches. It can be empty to catch-all
  • user (str) - username
  • passwd (str) - username

find_user_password(self, realm, url)

source code 

Stub replica for HTTPPasswordManagerWithDefaultRealm to retrieve username, password for the given realm and url

Parameters:
  • realm (str|None) - where the credentials should be applied None is a catch-all value
  • url - base url for application of username, password if realm matches. It can be empty to catch-all
Returns: tuple
tuple with the username, password values. It can be None, None if not found