class documentation

class LOGINCredentials(credentials.UsernamePassword): (source)

Known subclasses: twisted.mail.smtp.LOGINCredentials

Implements interfaces: twisted.mail.interfaces.IChallengeResponse

View In Hierarchy

Undocumented

Method __init__ Undocumented
Instance Variable challenges Undocumented
Instance Variable responses Undocumented
Method getChallenge Return a client challenge.
Method setResponse Extract a username and possibly a password from a response and assign them to username and password instance variables.
Method moreChallenges No summary

Inherited from UsernamePassword:

Instance Variable username Undocumented
Instance Variable password Undocumented
Method checkPassword Validate these credentials against the correct password.
challenges = (source)

Undocumented

(type: list[bytes])
responses = (source)

Undocumented

(type: list[bytes])
def getChallenge(self): (source)

Return a client challenge.

ReturnsA challenge. (type: bytes)
def setResponse(self, response): (source)

Extract a username and possibly a password from a response and assign them to username and password instance variables.

ParametersresponseA decoded response. (type: bytes)
See Alsocredentials.IUsernamePassword or credentials.IUsernameHashedPassword
def moreChallenges(self): (source)

Are there more challenges than just the first? If so, callers should challenge clients with the result of getChallenge, and check their response with setResponse in a loop until this returns False

ReturnsAre there more challenges? (type: bool)
API Documentation for Twisted, generated by pydoctor 21.2.0 at 2021-02-28 21:00:42.