Class: Mongo::Auth::Kerberos::Authenticator

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/mongo/auth/kerberos/mri/authenticator.rb,
lib/mongo/auth/kerberos/jruby/authenticator.rb

Overview

Wraps authenticator construction for JRuby.

Since:

  • 2.0.0

Instance Method Summary collapse

Constructor Details

#initialize(user, host) ⇒ Authenticator

Crate the new authenticator.

Examples:

Create the authenticator.

Authenticator.new(user, host)

Since:

  • 2.0.0


39
40
41
42
43
44
45
46
# File 'lib/mongo/auth/kerberos/mri/authenticator.rb', line 39

def initialize(user, host)
  @wrapped = GSSAPIAuthenticator.new(
    user.name,
    host,
    user.auth_mech_properties[:service_name] || 'mongodb',
    user.auth_mech_properties[:canonicalize_host_name] || false
  )
end