UserInfo Class

  • java.lang.Object
    • Serializable
      • com.microsoft.aad.adal.UserInfo

public class UserInfo

Contains information of a single user.

Constructor Summary

Constructor Description
UserInfo()

Default constructor for UserInfo.

UserInfo(IdToken idToken)

Constructor for creating UserInfo from IdToken.

UserInfo(String upn)

Constructor for UserInfo.

UserInfo(String userid, String givenName, String familyName, String identityProvider, String displayableId)

Constructor for UserInfo.

Method Summary

Modifier and Type Method and Description
String getDisplayableId()

Gets displayable user name.

String getFamilyName()

Gets family name.

String getGivenName()

Gets given name.

String getIdentityProvider()

Gets Identity provider.

Uri getPasswordChangeUrl()

Gets password change url.

Date getPasswordExpiresOn()

Gets password expires on.

String getUserId()

Gets unique user id.

Constructor Details

UserInfo

public UserInfo()

Default constructor for UserInfo.

UserInfo

public UserInfo(IdToken idToken)

Constructor for creating UserInfo from IdToken.

Parameters:

idToken - The IdToken to create UserInfo.

UserInfo

public UserInfo(String upn)

Constructor for UserInfo.

Parameters:

upn - Upn that is used to construct the UserInfo.

UserInfo

public UserInfo(String userid, String givenName, String familyName, String identityProvider, String displayableId)

Constructor for UserInfo.

Parameters:

userid - Unique user id for the userInfo.
givenName - Given name for the userInfo.
familyName - Family name for the userInfo.
identityProvider - IdentityProvider for the userInfo.
displayableId - Displayable for the userInfo.

Method Details

getDisplayableId

public String getDisplayableId()

Gets displayable user name.

Returns:

the displayable user name

getFamilyName

public String getFamilyName()

Gets family name.

Returns:

the family name of the user

getGivenName

public String getGivenName()

Gets given name.

Returns:

the given name of the user

getIdentityProvider

public String getIdentityProvider()

Gets Identity provider.

Returns:

the identity provider

getPasswordChangeUrl

public Uri getPasswordChangeUrl()

Gets password change url.

Returns:

the password change uri

getPasswordExpiresOn

public Date getPasswordExpiresOn()

Gets password expires on.

Returns:

the time when the password will expire

getUserId

public String getUserId()

Gets unique user id.

Returns:

the unique id representing an user

Applies to