AppCheckProvider

public interface AppCheckProvider


Interface for a provider that generates AppCheckTokens. This provider can be called at any time by any Firebase library that depends (optionally or otherwise) on AppCheckTokens. This provider is responsible for determining if it can create a new token at the time of the call and returning that new token if it can.

Summary

Public methods

default @NonNull Task<AppCheckToken>

Returns a Task which resolves to a valid, limited-use AppCheckToken or an Exception in the case that an unexpected failure occurred while getting the token.

abstract @NonNull Task<AppCheckToken>

Returns a Task which resolves to a valid AppCheckToken or an Exception in the case that an unexpected failure occurred while getting the token.

Public methods

getLimitedUseToken

default @NonNull Task<AppCheckTokengetLimitedUseToken()

Returns a Task which resolves to a valid, limited-use AppCheckToken or an Exception in the case that an unexpected failure occurred while getting the token.

getToken

abstract @NonNull Task<AppCheckTokengetToken()

Returns a Task which resolves to a valid AppCheckToken or an Exception in the case that an unexpected failure occurred while getting the token.