FirebaseCredentials

public final class FirebaseCredentials

A Firebase Database credentials.

This type can be used as an authentication facility for the requests to Firebase REST API.

See Firebase REST docs.

Functions

Link copied to clipboard
public static FirebaseCredentials empty()
Creates an empty instance of FirebaseCredentials.
Link copied to clipboard
public static FirebaseCredentials fromGoogleCredentials(GoogleCredentials credentials)
public static FirebaseCredentials fromGoogleCredentials(GoogleCredential credentials)
Creates a new FirebaseCredentials from the given GoogleCredentials.
Link copied to clipboard
public static FirebaseCredentials fromStream(InputStream credentialStream)
Creates a new instance of the FirebaseCredentials from the given credential stream.
Link copied to clipboard
public void initialize(HttpRequest request)
Authenticates a given HttpRequest with the wrapped Google credentials instance.
Link copied to clipboard
public boolean isEmpty()
Checks if the instance of the FirebaseCredentials is empty.