Class: Hermeneutics::Cli::ImapTools::AuthCramMD5

Inherits:
Auth show all
Includes:
CramMD5
Defined in:
lib/hermeneutics/cli/imap/commands.rb

Constant Summary collapse

TYPE =
:"CRAM-MD5"

Constants inherited from Auth

Hermeneutics::Cli::ImapTools::Auth::NAME

Instance Attribute Summary

Attributes inherited from Auth

#passwd, #user

Attributes inherited from Command

#responses

Instance Method Summary collapse

Methods included from CramMD5

included

Methods inherited from Auth

find, inherited, #initialize, #params

Methods inherited from CommandNamed

#name

Methods inherited from Command

#add_response, #initialize

Constructor Details

This class inherits a constructor from Hermeneutics::Cli::ImapTools::Auth

Instance Method Details

#stream_lines(r) {|[l]| ... } ⇒ Object

Yields:

  • ([l])


145
146
147
148
149
150
151
# File 'lib/hermeneutics/cli/imap/commands.rb', line 145

def stream_lines r
  a = super
  a = dec64 a
  w = crammd5_answer a
  l = enc64 w
  yield [l]
end