class Vines::Stream::Server::Outbound::TLSResult
Constants
- FAILURE
- NS
- PROCEED
Public Class Methods
new(stream, success=AuthRestart)
click to toggle source
Calls superclass method
# File lib/vines/stream/server/outbound/tls_result.rb, line 12 def initialize(stream, success=AuthRestart) super end
Public Instance Methods
node(node)
click to toggle source
# File lib/vines/stream/server/outbound/tls_result.rb, line 16 def node(node) raise StreamErrors::NotAuthorized unless namespace(node) == NS case node.name when PROCEED stream.encrypt stream.start(node) stream.reset advance when FAILURE stream.close_connection else raise StreamErrors::NotAuthorized end end