AppCheckToken

public abstract class AppCheckToken


Class to hold tokens emitted by the Firebase App Check service which are minted upon a successful application verification. These tokens are the federated output of a verification flow, the structure of which is independent of the mechanism by which the application was verified.

Summary

Public constructors

Public methods

abstract long

Returns the time at which the token will expire in milliseconds since epoch.

abstract @NonNull String

Returns the raw JWT attesting to this application’s identity.

Extension functions

final @NonNull String

Destructuring declaration for AppCheckToken to provide token.

final @NonNull String

This method is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration.

final long

Destructuring declaration for AppCheckToken to provide expireTimeMillis.

final long

This method is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration.

Public constructors

AppCheckToken

public AppCheckToken()

Public methods

getExpireTimeMillis

public abstract long getExpireTimeMillis()

Returns the time at which the token will expire in milliseconds since epoch.

getToken

public abstract @NonNull String getToken()

Returns the raw JWT attesting to this application’s identity.

Extension functions

FirebaseAppCheckKt.component1

public final @NonNull String FirebaseAppCheckKt.component1(@NonNull AppCheckToken receiver)

Destructuring declaration for AppCheckToken to provide token.

Returns
@NonNull String

the token of the AppCheckToken

FirebaseAppCheckKt.component1

public final @NonNull String FirebaseAppCheckKt.component1(@NonNull AppCheckToken receiver)

Destructuring declaration for AppCheckToken to provide token.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-appcheck-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.

Returns
@NonNull String

the token of the AppCheckToken

FirebaseAppCheckKt.component2

public final long FirebaseAppCheckKt.component2(@NonNull AppCheckToken receiver)

Destructuring declaration for AppCheckToken to provide expireTimeMillis.

Returns
long

the expireTimeMillis of the AppCheckToken

FirebaseAppCheckKt.component2

public final long FirebaseAppCheckKt.component2(@NonNull AppCheckToken receiver)

Destructuring declaration for AppCheckToken to provide expireTimeMillis.

Deprecation Notice: The Kotlin extensions (KTX) APIs have been added to their respective main modules, and the Kotlin extension (KTX) APIs in com.google.firebase.firebase-appcheck-ktx are now deprecated. As early as April 2024, we'll no longer release KTX modules. For details, see the FAQ about this initiative.

Returns
long

the expireTimeMillis of the AppCheckToken