io.dropwizard.bundles.apikey.ApiKeyConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-api-key-bundle Show documentation
Show all versions of dropwizard-api-key-bundle Show documentation
Dropwizard bundle that allows your application to support API keys.
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