Google is committed to advancing racial equity for Black communities. See how.

FirebaseAppCheck

public abstract class FirebaseAppCheck extends Object
implements InternalAppCheckTokenProvider

Public Constructor Summary

Public Method Summary

static FirebaseAppCheck
getInstance()
Get the default instance of FirebaseAppCheck.
static FirebaseAppCheck
getInstance(FirebaseApp firebaseApp)
Get the instance of FirebaseAppCheck associated with the given FirebaseApp instance.
abstract void
installAppCheckProviderFactory(AppCheckProviderFactory factory)
Installs the given AppCheckProviderFactory, overwriting any that were previously associated with this FirebaseAppCheck instance.
abstract void
installAppCheckProviderFactory(AppCheckProviderFactory factory, boolean isTokenAutoRefreshEnabled)
Installs the given AppCheckProviderFactory, overwriting any that were previously associated with this FirebaseAppCheck instance.
abstract void
setTokenAutoRefreshEnabled(boolean isTokenAutoRefreshEnabled)
Sets the isTokenAutoRefreshEnabled flag.

Inherited Method Summary

Public Constructors

public FirebaseAppCheck ()

Public Methods

public static FirebaseAppCheck getInstance ()

Get the default instance of FirebaseAppCheck.

public static FirebaseAppCheck getInstance (FirebaseApp firebaseApp)

Get the instance of FirebaseAppCheck associated with the given FirebaseApp instance.

public abstract void installAppCheckProviderFactory (AppCheckProviderFactory factory)

Installs the given AppCheckProviderFactory, overwriting any that were previously associated with this FirebaseAppCheck instance. Any AppCheckTokenListeners attached to this FirebaseAppCheck instance will be transferred from existing factories to the newly installed one.

Automatic token refreshing will only occur if the global isDataCollectionDefaultEnabled flag is set to true. To allow automatic token refreshing for Firebase App Check without changing the isDataCollectionDefaultEnabled flag for other Firebase SDKs, use installAppCheckProviderFactory(AppCheckProviderFactory, boolean) instead or call setTokenAutoRefreshEnabled(boolean) after installing the factory.

public abstract void installAppCheckProviderFactory (AppCheckProviderFactory factory, boolean isTokenAutoRefreshEnabled)

Installs the given AppCheckProviderFactory, overwriting any that were previously associated with this FirebaseAppCheck instance. Any AppCheckTokenListeners attached to this FirebaseAppCheck instance will be transferred from existing factories to the newly installed one.

Automatic token refreshing will only occur if the isTokenAutoRefreshEnabled field is set to true. To use the global isDataCollectionDefaultEnabled flag for determining automatic token refreshing, installAppCheckProviderFactory(AppCheckProviderFactory) should be called instead.

public abstract void setTokenAutoRefreshEnabled (boolean isTokenAutoRefreshEnabled)

Sets the isTokenAutoRefreshEnabled flag.