Class: Net::IMAP::LoginAuthenticator (Ruby 2.7.3)
Description: Class : Net::IMAP::LoginAuthenticator - Ruby 2.7.3

### Home Classes Methods

### In Files

- net/imap.rb

### Parent

Object

### Methods

- ::new
- #process

### Class/Module Index

Quicksearch

- Net
- Net::IMAP
- Net::IMAP::BadResponseError
- Net::IMAP::BodyTypeAttachment
- Net::IMAP::BodyTypeBasic
- Net::IMAP::BodyTypeExtension
- Net::IMAP::BodyTypeMessage
- Net::IMAP::BodyTypeMultipart
- Net::IMAP::BodyTypeText
- Net::IMAP::ByeResponseError
- Net::IMAP::CramMD5Authenticator
- Net::IMAP::DataFormatError
- Net::IMAP::DigestMD5Authenticator
- Net::IMAP::Error
- Net::IMAP::FlagCountError
- Net::IMAP::LoginAuthenticator
- Net::IMAP::NoResponseError
- Net::IMAP::NumValidator
- Net::IMAP::PlainAuthenticator
- Net::IMAP::ResponseError
- Net::IMAP::ResponseParseError

No matching classes.

# Net::IMAP::LoginAuthenticator

Authenticator for the “LOGIN” authentication type. See authenticate().

### Constants

STATE_PASSWORD
STATE_USER

### Public Class Methods

new(user, password) click to toggle source

                   # File net/imap.rb, line 3518
    def initialize(user, password)
      @user = user
      @password = password
      @state = STATE_USER
    end

### Public Instance Methods

process(data) click to toggle source

                   # File net/imap.rb, line 3503
    def process(data)
      case @state
      when STATE_USER
        @state = STATE_PASSWORD
        return @user
      when STATE_PASSWORD
        return @password
      end
    end