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

org.sdase.commons.starter.SdaPlatformConfiguration Maven / Gradle / Ivy

Go to download

A libraries to bootstrap services easily that follow the patterns and specifications promoted by the SDA SE

There is a newer version: 7.0.87
Show newest version
package org.sdase.commons.starter;

import io.dropwizard.core.Configuration;
import org.sdase.commons.server.auth.config.AuthConfig;
import org.sdase.commons.server.cors.CorsConfiguration;
import org.sdase.commons.server.opa.config.OpaConfig;

/** Default configuration for the {@link SdaPlatformBundle}. */
public class SdaPlatformConfiguration extends Configuration {

  /** Configuration of authentication. */
  private AuthConfig auth = new AuthConfig();

  /** Configuration of the open policy agent. */
  private OpaConfig opa = new OpaConfig();

  /** Configuration of the CORS filter. */
  private CorsConfiguration cors = new CorsConfiguration();

  public AuthConfig getAuth() {
    return auth;
  }

  public SdaPlatformConfiguration setAuth(AuthConfig auth) {
    this.auth = auth;
    return this;
  }

  public CorsConfiguration getCors() {
    return cors;
  }

  public SdaPlatformConfiguration setCors(CorsConfiguration cors) {
    this.cors = cors;
    return this;
  }

  public OpaConfig getOpa() {
    return opa;
  }

  public SdaPlatformConfiguration setOpa(OpaConfig opa) {
    this.opa = opa;
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy