Interface t.w.a.i.ICredentialFactory(Interface):

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

Known implementations: twisted.web2.auth.basic.BasicCredentialFactory, twisted.web2.auth.digest.DigestCredentialFactory
No interface docstring
Attribute scheme string indicated the authentication scheme this factory is associated with.
Method getChallenge Generate a challenge the client may respond to.
Method decode Create a credentials object from the given response.
scheme =
string indicated the authentication scheme this factory is associated with.
def getChallenge(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(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.