Class: Net::SSH::Transport::Session::CompatibleVerifier

Inherits:
Object
  • Object
show all
Defined in:
lib/net/ssh/transport/session.rb

Overview

Compatibility verifier which allows users to keep using custom verifier code without adding new :verify_signature method.

Instance Method Summary collapse

Constructor Details

#initialize(verifier) ⇒ CompatibleVerifier

Returns a new instance of CompatibleVerifier.


281
282
283
# File 'lib/net/ssh/transport/session.rb', line 281

def initialize(verifier)
  @verifier = verifier
end

Instance Method Details

#verify(arguments) ⇒ Object


285
286
287
# File 'lib/net/ssh/transport/session.rb', line 285

def verify(arguments)
  @verifier.verify(arguments)
end

#verify_signature(&block) ⇒ Object


289
290
291
# File 'lib/net/ssh/transport/session.rb', line 289

def verify_signature(&block)
  yield
end