Class: HrrRbSsh::Authentication::Method::None
- Inherits:
-
HrrRbSsh::Authentication::Method
- Object
- HrrRbSsh::Authentication::Method
- HrrRbSsh::Authentication::Method::None
- Defined in:
- lib/hrr_rb_ssh/authentication/method/none.rb,
lib/hrr_rb_ssh/authentication/method/none/context.rb
Defined Under Namespace
Classes: Context
Constant Summary collapse
- NAME =
'none'- PREFERENCE =
0
Instance Method Summary collapse
- #authenticate(userauth_request_message) ⇒ Object
-
#initialize(transport, options) ⇒ None
constructor
A new instance of None.
Methods included from SubclassWithPreferenceListable
#[], #inherited, #list_preferred, #list_supported
Constructor Details
#initialize(transport, options) ⇒ None
Returns a new instance of None.
13 14 15 16 |
# File 'lib/hrr_rb_ssh/authentication/method/none.rb', line 13 def initialize transport, @logger = Logger.new(self.class.name) @authenticator = .fetch( 'authentication_none_authenticator', Authenticator.new { false } ) end |
Instance Method Details
#authenticate(userauth_request_message) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/hrr_rb_ssh/authentication/method/none.rb', line 18 def authenticate @logger.info { "authenticate" } @logger.debug { "userauth request: " + .inspect } context = Context.new([:'user name']) @authenticator.authenticate context end |