Class: Mongo::Auth::Kerberos::Authenticator
- 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.
Instance Method Summary collapse
-
#initialize(user, host) ⇒ Authenticator
constructor
Crate the new authenticator.
Constructor Details
#initialize(user, host) ⇒ Authenticator
Crate the new authenticator.
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 |