class AwsSRP::Flow::PasswordVerifierResponse
Password Verifier Challange response wrapper
Attributes
response[R]
Public Class Methods
new(response)
click to toggle source
# File lib/aws_srp/flow/password_verifier_response.rb, line 9 def initialize(response) @response = response end
Public Instance Methods
bb()
click to toggle source
# File lib/aws_srp/flow/password_verifier_response.rb, line 25 def bb dig!('ChallengeParameters', 'SRP_B') end
challenge_name()
click to toggle source
# File lib/aws_srp/flow/password_verifier_response.rb, line 13 def challenge_name dig!('ChallengeName') end
salt()
click to toggle source
# File lib/aws_srp/flow/password_verifier_response.rb, line 17 def salt dig!('ChallengeParameters', 'SALT') end
secret_block()
click to toggle source
# File lib/aws_srp/flow/password_verifier_response.rb, line 21 def secret_block dig!('ChallengeParameters', 'SECRET_BLOCK') end
user_id()
click to toggle source
# File lib/aws_srp/flow/password_verifier_response.rb, line 29 def user_id dig!('ChallengeParameters', 'USER_ID_FOR_SRP') end
Private Instance Methods
dig!(*path)
click to toggle source
# File lib/aws_srp/flow/password_verifier_response.rb, line 35 def dig!(*path) response.dig(*path) || raise(ArgumentError, "#{path.join('/')} not found in the response") end