Sha256: 743cdc3c6dc88f4e04c11ed0e14ba74a9bf1c98736c641de94a44f7273273fec

Contents?: true

Size: 491 Bytes

Versions: 126

Compression:

Stored size: 491 Bytes

Contents

require "bunny/authentication/credentials_encoder"

module Bunny
  module Authentication
    # Encodes credentials using the PLAIN mechanism
    class PlainMechanismEncoder < CredentialsEncoder

      auth_mechanism "PLAIN", "plain"

      # Encodes provided credentials as described in RFC 2595
      # @api public
      # @see http://tools.ietf.org/rfc/rfc2595.txt RFC 2595
      def encode_credentials(username, password)
        "\0#{username}\0#{password}"
      end

    end
  end
end

Version data entries

126 entries across 126 versions & 2 rubygems

Version Path
bunny-2.23.0 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.22.0 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.21.0 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.20.3 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.20.2 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.20.1 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.20.0 lib/bunny/authentication/plain_mechanism_encoder.rb
garaio_bunny-2.19.2 lib/bunny/authentication/plain_mechanism_encoder.rb
garaio_bunny-2.19.1 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.19.0 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.18.0 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.17.0 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.16.1 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.15.0 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.14.4 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.14.3 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.14.2 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.14.1 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.13.0 lib/bunny/authentication/plain_mechanism_encoder.rb
bunny-2.12.1 lib/bunny/authentication/plain_mechanism_encoder.rb