Class: Google::Apis::VerifiedaccessV2::VerifyChallengeResponseRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/verifiedaccess_v2/classes.rb,
lib/google/apis/verifiedaccess_v2/representations.rb,
lib/google/apis/verifiedaccess_v2/representations.rb

Overview

Signed ChallengeResponse.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VerifyChallengeResponseRequest

Returns a new instance of VerifyChallengeResponseRequest.



351
352
353
# File 'lib/google/apis/verifiedaccess_v2/classes.rb', line 351

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#challenge_responseString

Required. The generated response to the challenge, the bytes representation of SignedData. Corresponds to the JSON property challengeResponse NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


340
341
342
# File 'lib/google/apis/verifiedaccess_v2/classes.rb', line 340

def challenge_response
  @challenge_response
end

#expected_identityString

Optional. Service can optionally provide identity information about the device or user associated with the key. For an EMK, this value is the enrolled domain. For an EUK, this value is the user's email address. If present, this value will be checked against contents of the response, and verification will fail if there is no match. Corresponds to the JSON property expectedIdentity

Returns:

  • (String)


349
350
351
# File 'lib/google/apis/verifiedaccess_v2/classes.rb', line 349

def expected_identity
  @expected_identity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



356
357
358
359
# File 'lib/google/apis/verifiedaccess_v2/classes.rb', line 356

def update!(**args)
  @challenge_response = args[:challenge_response] if args.key?(:challenge_response)
  @expected_identity = args[:expected_identity] if args.key?(:expected_identity)
end