Sha256: 8b7f01bcd0d759bbc067d3dae0e592f44601287470ef4d0c9f048c416b47cdac
Contents?: true
Size: 770 Bytes
Versions: 24
Compression:
Stored size: 770 Bytes
Contents
# encoding: UTF-8 module Vines class Stream class Client class AuthRestart < State def initialize(stream, success=Auth) super end def node(node) raise StreamErrors::NotAuthorized unless stream?(node) stream.start(node) doc = Document.new features = doc.create_element('stream:features') do |el| el << doc.create_element('mechanisms') do |parent| parent.default_namespace = NAMESPACES[:sasl] stream.authentication_mechanisms.each do |name| parent << doc.create_element('mechanism', name) end end end stream.write(features) advance end end end end end
Version data entries
24 entries across 24 versions & 4 rubygems