File: README.markdown

package info (click to toggle)
ruby-sasl 0.0.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 124 kB
  • ctags: 56
  • sloc: ruby: 451; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 669 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)