Class: RubyHome::StartSRPService
- Inherits:
-
Object
- Object
- RubyHome::StartSRPService
- Defined in:
- lib/ruby_home/http/services/start_srp_service.rb
Instance Method Summary collapse
-
#initialize(username:, password:) ⇒ StartSRPService
constructor
A new instance of StartSRPService.
- #proof ⇒ Object
- #public_key_bytes ⇒ Object
- #salt_bytes ⇒ Object
Constructor Details
#initialize(username:, password:) ⇒ StartSRPService
Returns a new instance of StartSRPService.
3 4 5 6 |
# File 'lib/ruby_home/http/services/start_srp_service.rb', line 3 def initialize(username: , password:) @username = username @password = password end |
Instance Method Details
#proof ⇒ Object
16 17 18 |
# File 'lib/ruby_home/http/services/start_srp_service.rb', line 16 def proof challenge_and_proof[:proof] end |
#public_key_bytes ⇒ Object
12 13 14 |
# File 'lib/ruby_home/http/services/start_srp_service.rb', line 12 def public_key_bytes [public_key].pack('H*') end |
#salt_bytes ⇒ Object
8 9 10 |
# File 'lib/ruby_home/http/services/start_srp_service.rb', line 8 def salt_bytes [salt].pack('H*') end |