This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README.markdown | Fri Feb 06 09:19:03 -0800 2009 | |
| |
lib/ | Mon Aug 17 11:48:33 -0700 2009 | |
| |
ruby-sasl.gemspec | Fri Feb 06 17:01:40 -0800 2009 | |
| |
spec/ | Fri Feb 06 17:01:07 -0800 2009 |
README.markdown
Simple Authentication and Security Layer (RFC 4422) for Ruby
Goal
Have a reusable library for client implementations that need to do authentication over SASL, mainly targeted at Jabber/XMPP libraries.
All class carry just state, are thread-agnostic and must also work in asynchronous environments.
Usage
Derive from SASL::Preferences and overwrite the methods. Then, create a mechanism instance:
# mechanisms => ['DIGEST-MD5', 'PLAIN']
sasl = SASL.new(mechanisms, my_preferences)
content_to_send = sasl.start
# [...]
content_to_send = sasl.challenge(received_content)







