Class: Google::Apis::FirebaseappcheckV1::GoogleFirebaseAppcheckV1AppCheckToken

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

Overview

Encapsulates an App Check token, which are used to access Firebase services protected by App Check.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFirebaseAppcheckV1AppCheckToken

Returns a new instance of GoogleFirebaseAppcheckV1AppCheckToken.



81
82
83
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 81

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

Instance Attribute Details

#tokenString

The App Check token. App Check tokens are signed JWTs containing claims that identify the attested app and Firebase project. This token is used to access Firebase services protected by App Check. These tokens can also be verified by your own custom backends using the Firebase Admin SDK. Corresponds to the JSON property token

Returns:

  • (String)


72
73
74
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 72

def token
  @token
end

#ttlString

The duration from the time this token is minted until its expiration. This field is intended to ease client-side token management, since the client may have clock skew, but is still able to accurately measure a duration. Corresponds to the JSON property ttl

Returns:

  • (String)


79
80
81
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 79

def ttl
  @ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



86
87
88
89
# File 'lib/google/apis/firebaseappcheck_v1/classes.rb', line 86

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