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
Method getChallenge Return a client challenge.
Method moreChallenges No summary
Method setResponse Extract a username and possibly a password from a response and assign them to username and password instance variables.
Instance Variable challenges Undocumented
Instance Variable responses Undocumented

Inherited from UsernamePassword:

Method checkPassword Validate these credentials against the correct password.
Instance Variable password Undocumented
Instance Variable username Undocumented
def getChallenge(self): (source)
Return a client challenge.
Returns
bytesA challenge.
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
Returns
boolAre there more challenges?
def setResponse(self, response): (source)
Extract a username and possibly a password from a response and assign them to username and password instance variables.
Parameters
response:bytesA decoded response.
See Also
credentials.IUsernamePassword or credentials.IUsernameHashedPassword
challenges: list[bytes] = (source)

Undocumented

responses: list[bytes] = (source)

Undocumented