com.microsoft.aad.msal4j.UserDiscoveryResponse Maven / Gradle / Ivy
// Generated by delombok at Sat Mar 26 00:48:08 UTC 2022
// 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;
}
}