Class: Net::SSH::Transport::Session::CompatibleVerifier
- Inherits:
-
Object
- Object
- Net::SSH::Transport::Session::CompatibleVerifier
- 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
-
#initialize(verifier) ⇒ CompatibleVerifier
constructor
A new instance of CompatibleVerifier.
- #verify(arguments) ⇒ Object
- #verify_signature(&block) ⇒ Object
Constructor Details
#initialize(verifier) ⇒ CompatibleVerifier
Returns a new instance of CompatibleVerifier.
283 284 285 |
# File 'lib/net/ssh/transport/session.rb', line 283 def initialize(verifier) @verifier = verifier end |
Instance Method Details
#verify(arguments) ⇒ Object
287 288 289 |
# File 'lib/net/ssh/transport/session.rb', line 287 def verify(arguments) @verifier.verify(arguments) end |
#verify_signature(&block) ⇒ Object
291 292 293 |
# File 'lib/net/ssh/transport/session.rb', line 291 def verify_signature(&block) yield end |