Class: Bunny::Authentication::PlainMechanismEncoder
- Inherits:
-
CredentialsEncoder
- Object
- CredentialsEncoder
- Bunny::Authentication::PlainMechanismEncoder
- Defined in:
- lib/bunny/authentication/plain_mechanism_encoder.rb
Overview
Encodes credentials using the PLAIN mechanism
Instance Attribute Summary
Attributes inherited from CredentialsEncoder
Instance Method Summary collapse
-
#encode_credentials(username, password) ⇒ Object
Encodes provided credentials as described in RFC 2595.
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
13 14 15 |
# File 'lib/bunny/authentication/plain_mechanism_encoder.rb', line 13 def encode_credentials(username, password) "\0#{username}\0#{password}" end |