com.azure.identity.implementation.MsalAuthenticationAccount Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.identity.implementation;
import com.azure.identity.AuthenticationRecord;
import com.microsoft.aad.msal4j.IAccount;
public class MsalAuthenticationAccount implements IAccount {
private AuthenticationRecord authenticationRecord;
public MsalAuthenticationAccount(AuthenticationRecord authenticationRecord) {
this.authenticationRecord = authenticationRecord;
}
@Override
public String homeAccountId() {
return authenticationRecord.getHomeAccountId();
}
@Override
public String environment() {
return authenticationRecord.getAuthority();
}
@Override
public String username() {
return authenticationRecord.getUsername();
}
public AuthenticationRecord getAuthenticationRecord() {
return authenticationRecord;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy