Method: Bunny::Authentication::ExternalMechanismEncoder#encode_credentials

Defined in:
lib/bunny/authentication/external_mechanism_encoder.rb

#encode_credentials(username, password) ⇒ String

Encodes a username and password for the EXTERNAL mechanism. Since authentication is handled by an encapsulating protocol like SSL or UNIX domain sockets, EXTERNAL doesn't pass along any username or password information at all and this method always returns the empty string.

Parameters:

  • username (String)

    The username to encode. This parameter is ignored.

  • password (String)

    The password to encode. This parameter is ignored.

Returns:

  • (String)

    The username and password, encoded for the EXTERNAL mechanism. This is always the empty string.



24
25
26
# File 'lib/bunny/authentication/external_mechanism_encoder.rb', line 24

def encode_credentials(username, password)
  ""
end