Class: Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaSafetyNetConfig

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

An app's SafetyNet configuration object. This configuration controls certain properties of the AppCheckToken returned by ExchangeSafetyNetToken, such as its ttl. Note that your registered SHA-256 certificate fingerprints are used to validate tokens issued by SafetyNet; please register them via the Firebase Console or programmatically via the Firebase Management Service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirebaseAppcheckV1betaSafetyNetConfig

Returns a new instance of GoogleFirebaseAppcheckV1betaSafetyNetConfig.



1317
1318
1319
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 1317

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

Instance Attribute Details

#nameString

Required. The relative resource name of the SafetyNet configuration object, in the format: projects/`project_number`/apps/`app_id`/safetyNetConfig Corresponds to the JSON property name

Returns:

  • (String)


1308
1309
1310
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 1308

def name
  @name
end

#token_ttlString

Specifies the duration for which App Check tokens exchanged from SafetyNet tokens will be valid. If unset, a default value of 1 hour is assumed. Must be between 30 minutes and 7 days, inclusive. Corresponds to the JSON property tokenTtl

Returns:

  • (String)


1315
1316
1317
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 1315

def token_ttl
  @token_ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1322
1323
1324
1325
# File 'lib/google/apis/firebaseappcheck_v1beta/classes.rb', line 1322

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