UserInfo

public interface UserInfo
Known Indirect Subclasses

A collection of standard profile information for a user. Used to expose profile information returned by an identity provider.

Public Method Summary

abstract String
getDisplayName()
Returns the user's display name, if available.
abstract String
getEmail()
Returns the user's email address, if available.
abstract String
getPhoneNumber()
Returns the user's phone number, if available.
abstract String
getPhotoUrl()
Returns the user's photo URL, if available.
abstract String
getProviderId()
Returns the ID of the identity provider.
abstract String
getUid()
Returns the user's unique ID assigned by the identity provider.

Public Methods

public abstract String getDisplayName ()

Returns the user's display name, if available.

Returns
  • a display name string or null.

public abstract String getEmail ()

Returns the user's email address, if available.

Returns
  • an email address string or null.

public abstract String getPhoneNumber ()

Returns the user's phone number, if available.

Returns
  • a phone number string or null.

public abstract String getPhotoUrl ()

Returns the user's photo URL, if available.

Returns
  • a URL string or null.

public abstract String getProviderId ()

Returns the ID of the identity provider. This can be a short domain name (e.g. google.com) or the identifier of an OpenID identity provider.

Returns
  • an ID string that uniquely identifies the identity provider.

public abstract String getUid ()

Returns the user's unique ID assigned by the identity provider.

Returns
  • a user ID string.

Send feedback about...

Need help? Visit our support page.