private Method

Authenticator.check_init(config)

There's no documentation for this item.

Source Code

# File webrick/httpauth/authenticator.rb, line 23
def check_init(config)
  [:UserDB, :Realm].each{|sym|
    unless config[sym]
      raise ArgumentError, "Argument #{sym.inspect} missing."
    end
  } 
  @realm     = config[:Realm]
  @userdb    = config[:UserDB]
  @logger    = config[:Logger] || Log::new($stderr)
  @reload_db = config[:AutoReloadUserDB]
  @request_field   = self::class::RequestField
  @response_field  = self::class::ResponseField
  @resp_info_field = self::class::ResponseInfoField
  @auth_exception  = self::class::AuthException
  @auth_scheme     = self::class::AuthScheme
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.