ExportedUserRecord

public class ExportedUserRecord extends UserRecord

Contains metadata associated with a Firebase user account, along with password hash and salt. Instances of this class are immutable and thread-safe.

Public Method Summary

String
getPasswordHash()
Returns the user's password hash as a base64-encoded string.
String
getPasswordSalt()
Returns the user's password salt as a base64-encoded string.

Inherited Method Summary

Public Methods

public String getPasswordHash ()

Returns the user's password hash as a base64-encoded string.

If the Firebase Auth hashing algorithm (SCRYPT) was used to create the user account, returns the base64-encoded password hash of the user. If a different hashing algorithm was used to create this user, as is typical when migrating from another Auth system, returns an empty string. Returns null if no password is set.

Returns
  • A base64-encoded password hash, possibly empty or null.

public String getPasswordSalt ()

Returns the user's password salt as a base64-encoded string.

If the Firebase Auth hashing algorithm (SCRYPT) was used to create the user account, returns the base64-encoded password salt of the user. If a different hashing algorithm was used to create this user, as is typical when migrating from another Auth system, returns an empty string. Returns null if no password is set.

Returns
  • A base64-encoded password salt, possibly empty or null.