Known implementations: twisted.mail._cred.LOGINCredentials, twisted.mail._cred.PLAINCredentials

An IMAPrev4 authorization challenge mechanism.

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
def getChallenge():

Return a client challenge.

ReturnsA challenge. (type: bytes)
def setResponse(response):

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():

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 at 2020-03-25 17:34:30.