All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fusionauth.domain.provider.BaseIdentityProviderApplicationConfiguration Maven / Gradle / Ivy

There is a newer version: 1.53.0
Show newest version
/*
 * Copyright (c) 2018-2022, FusionAuth, All Rights Reserved
 */
package io.fusionauth.domain.provider;

import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.inversoft.json.ToString;
import io.fusionauth.domain.Enableable;

/**
 * @author Daniel DeGroff
 */
public abstract class BaseIdentityProviderApplicationConfiguration extends Enableable  {
  // This is used for JSONColumn and we don't document any custom data. If we do end up documenting custom data, remove this annotation.
  @JsonInclude(Include.NON_EMPTY)
  public final Map data = new HashMap<>();

  public boolean createRegistration = true;

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof BaseIdentityProviderApplicationConfiguration)) {
      return false;
    }
    if (!super.equals(o)) {
      return false;
    }
    BaseIdentityProviderApplicationConfiguration that = (BaseIdentityProviderApplicationConfiguration) o;
    return createRegistration == that.createRegistration &&
           Objects.equals(data, that.data);
  }

  @Override
  public int hashCode() {
    return Objects.hash(super.hashCode(), data, createRegistration);
  }

  @Override
  public String toString() {
    return ToString.toString(this);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy