Sha256: e12c3c55c604fc95ed79061329ccce0d31016b1533f2800aa48ba3c2d3270b72

Contents?: true

Size: 921 Bytes

Versions: 10

Compression:

Stored size: 921 Bytes

Contents

require "bunny/authentication/credentials_encoder"

module Bunny
  module Authentication
    class ExternalMechanismEncoder < CredentialsEncoder

      auth_mechanism "EXTERNAL", "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
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
bunny-0.9.0.pre13 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.9.0.pre12 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.9.0.pre11 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.9.0.pre10 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.9.0.pre9 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.9.0.pre8 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.9.0.pre7 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.9.0.pre6 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.9.0.pre5 lib/bunny/authentication/external_mechanism_encoder.rb
bunny-0.9.0.pre4 lib/bunny/authentication/external_mechanism_encoder.rb