Class: Bunny::Authentication::ExternalMechanismEncoder

Inherits:
CredentialsEncoder show all
Defined in:
lib/bunny/authentication/external_mechanism_encoder.rb

Overview

Encodes credentials using the EXTERNAL mechanism

Instance Attribute Summary

Attributes inherited from CredentialsEncoder

#session

Instance Method Summary collapse

Methods inherited from CredentialsEncoder

auth_mechanism, for_session, #initialize

Constructor Details

This class inherits a constructor from Bunny::Authentication::CredentialsEncoder

Instance Method Details

#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.



22
23
24
# File 'lib/bunny/authentication/external_mechanism_encoder.rb', line 22

def encode_credentials(username, password)
  ""
end