Class: Bunny::Authentication::ExternalMechanismEncoder
- Inherits:
-
CredentialsEncoder
- Object
- CredentialsEncoder
- Bunny::Authentication::ExternalMechanismEncoder
- Defined in:
- lib/bunny/authentication/external_mechanism_encoder.rb
Overview
Encodes credentials using the EXTERNAL mechanism
Instance Attribute Summary
Attributes inherited from CredentialsEncoder
Instance Method Summary collapse
-
#encode_credentials(username, password) ⇒ String
Encodes a username and password for the EXTERNAL mechanism.
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) ⇒ String
Encodes a username and password for the EXTERNAL mechanism. Since authentication is handled by an encapsulating protocol like SSL or UNIX domain sockets, EXTERNAL doesn't pass along any username or password information at all and this method always returns the empty string.
22 23 24 |
# File 'lib/bunny/authentication/external_mechanism_encoder.rb', line 22 def encode_credentials(username, password) "" end |