
com.okta.sdk.resource.model.IdentityProviderProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of okta-sdk-api Show documentation
Show all versions of okta-sdk-api Show documentation
The Okta Java SDK API .jar provides a Java API that your code can use to make calls to the Okta
API. This .jar is the only compile-time dependency within the Okta SDK project that your code should
depend on. Implementations of this API (implementation .jars) should be runtime dependencies only.
package com.okta.sdk.resource.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.openapitools.jackson.nullable.JsonNullable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.openapitools.jackson.nullable.JsonNullable;
import java.util.NoSuchElementException;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
/**
* The properties in the Identity Provider Properties object vary depending on the IdP type
*/
@ApiModel(description = "The properties in the Identity Provider Properties object vary depending on the IdP type")
@JsonPropertyOrder({ IdentityProviderProperties.JSON_PROPERTY_AAL_VALUE,
IdentityProviderProperties.JSON_PROPERTY_ADDITIONAL_AMR, IdentityProviderProperties.JSON_PROPERTY_IAL_VALUE })
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-11-15T08:48:47.130589-06:00[America/Chicago]", comments = "Generator version: 7.8.0")
public class IdentityProviderProperties implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_AAL_VALUE = "aalValue";
private JsonNullable aalValue = JsonNullable. undefined();
/**
* Gets or Sets additionalAmr
*/
public enum AdditionalAmrEnum {
SC("sc"),
HWK("hwk"),
PIN("pin"),
MFA("mfa"),
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
private String value;
AdditionalAmrEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static AdditionalAmrEnum fromValue(String value) {
for (AdditionalAmrEnum b : AdditionalAmrEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
return UNKNOWN_DEFAULT_OPEN_API;
}
}
public static final String JSON_PROPERTY_ADDITIONAL_AMR = "additionalAmr";
private JsonNullable> additionalAmr = JsonNullable.> undefined();
public static final String JSON_PROPERTY_IAL_VALUE = "ialValue";
private JsonNullable ialValue = JsonNullable. undefined();
public IdentityProviderProperties() {
}
public IdentityProviderProperties aalValue(String aalValue) {
this.aalValue = JsonNullable. of(aalValue);
return this;
}
/**
* The [authentication assurance level](https://developers.login.gov/oidc/#aal-values) (AAL) value for the Login.gov
* IdP. See [Add a Login.gov IdP](https://developer.okta.com/docs/guides/add-logingov-idp/). Applies to
* `LOGINGOV` and `LOGINGOV_SANDBOX` IdP types.
*
* @return aalValue
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The [authentication assurance level](https://developers.login.gov/oidc/#aal-values) (AAL) value for the Login.gov IdP. See [Add a Login.gov IdP](https://developer.okta.com/docs/guides/add-logingov-idp/). Applies to `LOGINGOV` and `LOGINGOV_SANDBOX` IdP types.")
@JsonIgnore
public String getAalValue() {
return aalValue.orElse(null);
}
@JsonProperty(JSON_PROPERTY_AAL_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getAalValue_JsonNullable() {
return aalValue;
}
@JsonProperty(JSON_PROPERTY_AAL_VALUE)
public void setAalValue_JsonNullable(JsonNullable aalValue) {
this.aalValue = aalValue;
}
public void setAalValue(String aalValue) {
this.aalValue = JsonNullable. of(aalValue);
}
public IdentityProviderProperties additionalAmr(List additionalAmr) {
this.additionalAmr = JsonNullable.> of(additionalAmr);
return this;
}
public IdentityProviderProperties addadditionalAmrItem(AdditionalAmrEnum additionalAmrItem) {
if (this.additionalAmr == null || !this.additionalAmr.isPresent()) {
this.additionalAmr = JsonNullable.> of(new ArrayList<>());
}
try {
this.additionalAmr.get().add(additionalAmrItem);
} catch (java.util.NoSuchElementException e) {
// this can never happen, as we make sure above that the value is present
}
return this;
}
/**
* The additional Assurance Methods References (AMR) values for Smart Card IdPs. Applies to `X509` IdP
* type.
*
* @return additionalAmr
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The additional Assurance Methods References (AMR) values for Smart Card IdPs. Applies to `X509` IdP type.")
@JsonIgnore
public List getAdditionalAmr() {
return additionalAmr.orElse(null);
}
@JsonProperty(JSON_PROPERTY_ADDITIONAL_AMR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable> getAdditionalAmr_JsonNullable() {
return additionalAmr;
}
@JsonProperty(JSON_PROPERTY_ADDITIONAL_AMR)
public void setAdditionalAmr_JsonNullable(JsonNullable> additionalAmr) {
this.additionalAmr = additionalAmr;
}
public void setAdditionalAmr(List additionalAmr) {
this.additionalAmr = JsonNullable.> of(additionalAmr);
}
public IdentityProviderProperties ialValue(String ialValue) {
this.ialValue = JsonNullable. of(ialValue);
return this;
}
/**
* The [type of identity verification](https://developers.login.gov/oidc/#ial-values) (IAL) value for the Login.gov
* IdP. See [Add a Login.gov IdP](https://developer.okta.com/docs/guides/add-logingov-idp/). Applies to
* `LOGINGOV` and `LOGINGOV_SANDBOX` IdP types.
*
* @return ialValue
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The [type of identity verification](https://developers.login.gov/oidc/#ial-values) (IAL) value for the Login.gov IdP. See [Add a Login.gov IdP](https://developer.okta.com/docs/guides/add-logingov-idp/). Applies to `LOGINGOV` and `LOGINGOV_SANDBOX` IdP types.")
@JsonIgnore
public String getIalValue() {
return ialValue.orElse(null);
}
@JsonProperty(JSON_PROPERTY_IAL_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getIalValue_JsonNullable() {
return ialValue;
}
@JsonProperty(JSON_PROPERTY_IAL_VALUE)
public void setIalValue_JsonNullable(JsonNullable ialValue) {
this.ialValue = ialValue;
}
public void setIalValue(String ialValue) {
this.ialValue = JsonNullable. of(ialValue);
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
IdentityProviderProperties identityProviderProperties = (IdentityProviderProperties) o;
return equalsNullable(this.aalValue, identityProviderProperties.aalValue)
&& equalsNullable(this.additionalAmr, identityProviderProperties.additionalAmr)
&& equalsNullable(this.ialValue, identityProviderProperties.ialValue);
// ;
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
return a == b
|| (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
}
@Override
public int hashCode() {
return Objects.hash(hashCodeNullable(aalValue), hashCodeNullable(additionalAmr), hashCodeNullable(ialValue));
}
private static int hashCodeNullable(JsonNullable a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[] { a.get() }) : 31;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IdentityProviderProperties {\n");
sb.append(" aalValue: ").append(toIndentedString(aalValue)).append("\n");
sb.append(" additionalAmr: ").append(toIndentedString(additionalAmr)).append("\n");
sb.append(" ialValue: ").append(toIndentedString(ialValue)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy