Class: GorgonBunny::Authentication::PlainMechanismEncoder

Inherits:
CredentialsEncoder show all
Defined in:
lib/gorgon_bunny/lib/gorgon_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, registry

Instance Method Details

#encode_credentials(username, password) ⇒ Object

Encodes provided credentials as described in RFC 2595

See Also:



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

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