t.w.a.b.BasicCredentialFactory(object) : class documentation

Part of twisted.web2.auth.basic View Source View In Hierarchy

Implements interfaces: twisted.web2.auth.interfaces.ICredentialFactory

Credential Factory for HTTP Basic Authentication
Method __init__ Undocumented
Method getChallenge Generate a challenge the client may respond to.
Method decode Create a credentials object from the given response. May raise twisted.cred.error.LoginFailed if the response is invalid.
def __init__(self, realm): (source)
Undocumented
def getChallenge(self, peer): (source)
Generate a challenge the client may respond to.
ParameterspeerThe client's address (type: twisted.internet.interfaces.IAddress )
Returnsdictionary of challenge arguments (type: dict )
def decode(self, response, request): (source)
Create a credentials object from the given response. May raise twisted.cred.error.LoginFailed if the response is invalid.
Parametersresponsescheme specific response string (type: str )
requestthe request being processed (type: twisted.web2.server.Request )
ReturnsICredentials
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:22:34.