Class: Bunny::Authentication::PlainMechanismEncoder

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

Overview

Encodes credentials using the PLAIN 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) ⇒ Object

Encodes provided credentials as described in RFC 2595

See Also:



13
14
15
# File 'lib/bunny/authentication/plain_mechanism_encoder.rb', line 13

def encode_credentials(username, password)
  "\0#{username}\0#{password}"
end