public class Account extends java.lang.Object implements IAccount
| Constructor and Description |
|---|
Account(java.lang.String clientInfo,
IDToken homeTenantIdToken) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuthority() |
java.util.Map<java.lang.String,?> |
getClaims()
Gets the claims associated to this Account's IdToken.
|
java.lang.String |
getId()
Gets the id of the account.
|
java.lang.String |
getIdToken()
Gets the JWT format id_token corresponding to this IClaimable.
|
java.lang.String |
getTenantId()
Gets the tid claim associated with this IClaimable.
|
java.lang.String |
getUsername()
Gets the preferred_username claim associated with this IClaimable.
|
public java.lang.String getId()
IAccountFor the Microsoft Identity Platform: the OID of the account in its home tenant.
public java.lang.String getTenantId()
IClaimablegetTenantId in interface IClaimablepublic java.lang.String getIdToken()
IClaimableNote: MSAL does not validate the JWT token.
getIdToken in interface IClaimablepublic java.util.Map<java.lang.String,?> getClaims()
getClaims in interface IClaimablepublic java.lang.String getUsername()
IClaimableNote: On the Microsoft B2C Identity Platform, this claim may be unavailable when external identity providers are used.
getUsername in interface IClaimablepublic java.lang.String getAuthority()
getAuthority in interface IAccount