Class AMQ::Client::Async::AuthMechanismAdapter::Plain
In: lib/amq/client/async/auth_mechanism_adapter/plain.rb
Parent: AuthMechanismAdapter

Manages the encoding of credentials for the PLAIN authentication mechanism.

Methods

Public Instance methods

Encodes credentials for the given username and password. This involves sending the password across the wire in plaintext, so PLAIN authentication should only be used over a secure transport layer.

@param [String] username The username to encode. @param [String] password The password to encode. @return [String] The username and password, encoded for the PLAIN

  mechanism.

[Validate]