Sha256: 62c18835293ed48502a4b8889bcac67ef87ed936422eeea9b5f37844f2d80db1

Contents?: true

Size: 905 Bytes

Versions: 24

Compression:

Stored size: 905 Bytes

Contents

# encoding: utf-8

module AMQP

  # Manages the encoding of credentials for the EXTERNAL authentication
  # mechanism.
  class AuthMechanismAdapter::External < AuthMechanismAdapter

    auth_mechanism "EXTERNAL"

    # 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.
    #
    # @param [String] username The username to encode. This parameter is
    #   ignored.
    # @param [String] password The password to encode. This parameter is
    #   ignored.
    # @return [String] The username and password, encoded for the
    #   EXTERNAL mechanism. This is always the empty string.
    def encode_credentials(username, password)
      ""
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
amqp-1.1.1 lib/amqp/auth_mechanism_adapter/external.rb
amqp-1.1.0 lib/amqp/auth_mechanism_adapter/external.rb
amqp-1.1.0.rc1 lib/amqp/auth_mechanism_adapter/external.rb
amqp-1.1.0.pre2 lib/amqp/auth_mechanism_adapter/external.rb