Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > net/imapライブラリ > Net::IMAPクラス > add_authenticator

singleton method Net::IMAP.add_authenticator

add_authenticator(auth_type, authenticator) -> ()

Net::IMAP#authenticate で使う 認証用クラスを設定します。

imap ライブラリに新たな認証方式を追加するために用います。

通常は使う必要はないでしょう。もしこれを用いて 認証方式を追加する場合は net/imap.rb の Net::IMAP::LoginAuthenticator などを参考にしてください。

[PARAM] auth_type:
認証の種類(文字列)
[PARAM] authenticator:
認証クラス(Class オブジェクト)
class Net::IMAP