com.microsoft.aad.msal4j.IAccount Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.mail.outlook.auth.connector.provider
Show all versions of com.liferay.mail.outlook.auth.connector.provider
Liferay Mail Outlook Auth Connector Provider
// 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 user account. An IAccount is returned in the {@link IAuthenticationResult}
* property, and is used as parameter in {@link SilentParameters#builder(Set, IAccount)} )}
*/
public interface IAccount extends Serializable {
/**
* @return account id
*/
String homeAccountId();
/**
* @return account environment
*/
String environment();
/**
* @return account username
*/
String username();
/**
* Map of {@link ITenantProfile} objects related to this account, the keys of the map are the tenant ID values and
* match the 'realm' key of an ID token
*
* @return tenant profiles
*/
Map getTenantProfiles();
}