mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/imap.rb (Net::IMAP::PlainAuthenticator): added a new class
to support the PLAIN authentication mechanism. Thanks, Benjamin Stiglitz. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0634c07610
commit
4394e19fdd
2 changed files with 22 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Sun Dec 26 16:21:39 2004 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/net/imap.rb (Net::IMAP::PlainAuthenticator): added a new class
|
||||||
|
to support the PLAIN authentication mechanism. Thanks, Benjamin
|
||||||
|
Stiglitz.
|
||||||
|
|
||||||
Fri Dec 24 23:27:18 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
Fri Dec 24 23:27:18 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
* ext/tk/lib/tk/image.rb: TkPhotoImage#cget bug fix
|
* ext/tk/lib/tk/image.rb: TkPhotoImage#cget bug fix
|
||||||
|
|
|
@ -3130,6 +3130,22 @@ module Net
|
||||||
end
|
end
|
||||||
add_authenticator "LOGIN", LoginAuthenticator
|
add_authenticator "LOGIN", LoginAuthenticator
|
||||||
|
|
||||||
|
# Authenticator for the "PLAIN" authentication type. See
|
||||||
|
# #authenticate().
|
||||||
|
class PlainAuthenticator
|
||||||
|
def process(data)
|
||||||
|
return "\0#{@user}\0#{@password}"
|
||||||
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def initialize(user, password)
|
||||||
|
@user = user
|
||||||
|
@password = password
|
||||||
|
end
|
||||||
|
end
|
||||||
|
add_authenticator "PLAIN", PlainAuthenticator
|
||||||
|
|
||||||
# Authenticator for the "CRAM-MD5" authentication type. See
|
# Authenticator for the "CRAM-MD5" authentication type. See
|
||||||
# #authenticate().
|
# #authenticate().
|
||||||
class CramMD5Authenticator
|
class CramMD5Authenticator
|
||||||
|
|
Loading…
Add table
Reference in a new issue