Class: AMQP::AuthMechanismAdapter::External

Inherits:
AMQP::AuthMechanismAdapter show all
Defined in:
lib/amqp/auth_mechanism_adapter/external.rb

Overview

Manages the encoding of credentials for the EXTERNAL authentication mechanism.

Instance Attribute Summary

Attributes inherited from AMQP::AuthMechanismAdapter

#adapter

Instance Method Summary collapse

Methods inherited from AMQP::AuthMechanismAdapter

auth_mechanism, for_adapter

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.



23
24
25
# File 'lib/amqp/auth_mechanism_adapter/external.rb', line 23

def encode_credentials(username, password)
  ""
end