Class: GorgonBunny::Authentication::PlainMechanismEncoder
- Inherits:
-
CredentialsEncoder
- Object
- CredentialsEncoder
- GorgonBunny::Authentication::PlainMechanismEncoder
- 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
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, registry
Instance Method Details
#encode_credentials(username, password) ⇒ Object
Encodes provided credentials as described in RFC 2595
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 |