Class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse

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

Overview

Response object for GenerateAppAttestChallenge

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse

Returns a new instance of GoogleFirebaseAppcheckV1betaAppAttestChallengeResponse.



44
45
46
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 44

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

Instance Attribute Details

#challengeString

A one time use challenge for the client to pass to Apple's App Attest API. Corresponds to the JSON property challenge NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


33
34
35
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 33

def challenge
  @challenge
end

#ttlString

The duration from the time this challenge is minted until it is expired. This field is intended to ease client-side token management, since the device may have clock skew, but is still able to accurately measure a duration. This expiration is intended to minimize the replay window within which a single challenge may be reused. See AIP 142 for naming of this field. Corresponds to the JSON property ttl

Returns:

  • (String)


42
43
44
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 42

def ttl
  @ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



49
50
51
52
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 49

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