Class/Module Index [+]

Quicksearch

Bunny::Authentication::PlainMechanismEncoder

Encodes credentials using the PLAIN mechanism

Public Instance Methods

encode_credentials(username, password) click to toggle source

Encodes provided credentials as described in RFC 2595 @api public @see tools.ietf.org/rfc/rfc2595.txt RFC 2595

# File lib/bunny/authentication/plain_mechanism_encoder.rb, line 13
def encode_credentials(username, password)
  "\00##{username}\00##{password}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.