public class SecurityBundle<T extends io.dropwizard.Configuration>
extends java.lang.Object
implements io.dropwizard.ConfiguredBundle<T>
ConfiguredBundle
that enforces common rules for secure REST applications.
This bundle helps to avoid risks identified in the security guide "Dropwizard Härtungsmaßnahmen" by Timo Pagel. Risk management is delegated to other classes, that are initialized or invoked from this bundle:
Modifier and Type | Class and Description |
---|---|
static class |
SecurityBundle.Builder |
Modifier and Type | Method and Description |
---|---|
static SecurityBundle.Builder |
builder() |
void |
initialize(io.dropwizard.setup.Bootstrap<?> bootstrap) |
void |
run(T configuration,
io.dropwizard.setup.Environment environment) |
public static SecurityBundle.Builder builder()
public void initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
initialize
in interface io.dropwizard.ConfiguredBundle<T extends io.dropwizard.Configuration>