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

io.dropwizard.bundles.apikey.ApiKeyConfiguration Maven / Gradle / Ivy

There is a newer version: 1.3.2
Show newest version
package io.dropwizard.bundles.apikey;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Optional;

public class ApiKeyConfiguration {
  private final AuthConfiguration basicConfiguration;

  @JsonCreator
  ApiKeyConfiguration(@JsonProperty("basic-http") AuthConfiguration basicConfiguration) {
    this.basicConfiguration = basicConfiguration;
  }

  /**
   * The API key configuration for HTTP basic authentication.  Can be missing.
   */
  @JsonProperty("basic-http")
  public Optional getBasicConfiguration() {
    return Optional.ofNullable(basicConfiguration);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy