Sha256: a31ae77c57163557bfc82da07a55e918bdcac93cc68e9da02ddf7d23499848ab
Contents?: true
Size: 728 Bytes
Versions: 18
Compression:
Stored size: 728 Bytes
Contents
# encoding: UTF-8 module Vines class Stream class Server class Outbound class AuthResult < State SUCCESS = 'success'.freeze FAILURE = 'failure'.freeze def initialize(stream, success=FinalRestart) super end def node(node) raise StreamErrors::NotAuthorized unless namespace(node) == NAMESPACES[:sasl] case node.name when SUCCESS stream.start(node) stream.reset advance when FAILURE stream.close_connection else raise StreamErrors::NotAuthorized end end end end end end end
Version data entries
18 entries across 18 versions & 4 rubygems