// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.microsoft.aad.msal4j; import java.io.Serializable; import java.util.Map; /** * Interface representing a single tenant profile. ITenantProfiles are made available through the * {@link IAccount#getTenantProfiles()} method of an Account */ public interface ITenantProfile extends Serializable { /** * A map of claims taken from an ID token. Keys and values will follow the structure of a JSON Web Token * * @return Map claims in id token */ Map getClaims(); /** * Gets the environment where this tenant is hosted. *

* The environment value typically represents the hostname of the authentication service, * such as "login.microsoftonline.com" for the public cloud or other domain names for * sovereign clouds. * * @return The environment for this tenant profile */ String environment(); }