com.microsoft.aad.msal4j.UserDiscoveryResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of msal4j Show documentation
Show all versions of msal4j Show documentation
Microsoft Authentication Library for Java gives you the ability to obtain tokens from Azure AD v2 (work and school
accounts, MSA) and Azure AD B2C, gaining access to Microsoft Cloud API and any other API secured by Microsoft
identities
The newest version!
// Generated by delombok at Sat Dec 21 00:20:57 UTC 2024
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.aad.msal4j;
import com.fasterxml.jackson.annotation.JsonProperty;
class UserDiscoveryResponse {
@JsonProperty("ver")
private float version;
@JsonProperty("account_type")
private String accountType;
@JsonProperty("federation_metadata_url")
private String federationMetadataUrl;
@JsonProperty("federation_protocol")
private String federationProtocol;
@JsonProperty("federation_active_auth_url")
private String federationActiveAuthUrl;
@JsonProperty("cloud_audience_urn")
private String cloudAudienceUrn;
boolean isAccountFederated() {
return !StringHelper.isBlank(this.accountType) && this.accountType.equalsIgnoreCase("Federated");
}
boolean isAccountManaged() {
return !StringHelper.isBlank(this.accountType) && this.accountType.equalsIgnoreCase("Managed");
}
@java.lang.SuppressWarnings("all")
float version() {
return this.version;
}
@java.lang.SuppressWarnings("all")
String accountType() {
return this.accountType;
}
@java.lang.SuppressWarnings("all")
String federationMetadataUrl() {
return this.federationMetadataUrl;
}
@java.lang.SuppressWarnings("all")
String federationProtocol() {
return this.federationProtocol;
}
@java.lang.SuppressWarnings("all")
String federationActiveAuthUrl() {
return this.federationActiveAuthUrl;
}
@java.lang.SuppressWarnings("all")
String cloudAudienceUrn() {
return this.cloudAudienceUrn;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy