class Google::Apis::FirebaseappcheckV1beta::GoogleFirebaseAppcheckV1betaSafetyNetConfig

An app's SafetyNet configuration object. This configuration controls certain properties of the App Check token 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](https:// firebase.google.com/docs/projects/api/reference/rest/v1beta1/projects. androidApps.sha/create).

Attributes

name[RW]

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` @return [String]

token_ttl[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/firebaseappcheck_v1beta/classes.rb, line 758
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/firebaseappcheck_v1beta/classes.rb, line 763
def update!(**args)
  @name = args[:name] if args.key?(:name)
  @token_ttl = args[:token_ttl] if args.key?(:token_ttl)
end