fromStream

public static FirebaseCredentials fromStream(InputStream credentialStream)

Creates a new instance of the FirebaseCredentials from the given credential stream.

Typically the stream will contain a service account JSON file data.

See docs for details on how to obtain the file.

Return

a new instance of FirebaseCredentials

Parameters

credentialStream

the stream containing credentials data

Throws

in case there are problems with parsing the given stream into GoogleCredentials