Class: Mysql::Authenticator::DummyPlugin

Inherits:
Object
  • Object
show all
Defined in:
lib/mysql/authenticator.rb

Overview

dummy plugin

Instance Method Summary collapse

Constructor Details

#initialize(protocol) ⇒ DummyPlugin

Returns a new instance of DummyPlugin.

Parameters:



67
68
69
# File 'lib/mysql/authenticator.rb', line 67

def initialize(protocol)
  @protocol = protocol
end

Instance Method Details

#authenticate(passwd, scramble) {|String| ... } ⇒ Mysql::Packet

Parameters:

  • passwd (String)
  • scramble (String)

Yields:

  • (String)

    hashed password

Returns:



80
81
82
83
# File 'lib/mysql/authenticator.rb', line 80

def authenticate(passwd, scramble)  # rubocop:disable Lint/UnusedMethodArgument
  yield ''
  @protocol.read
end

#nameString

Returns:

  • (String)


72
73
74
# File 'lib/mysql/authenticator.rb', line 72

def name
  ''
end