Class SecurityBundle<T extends io.dropwizard.Configuration>
- java.lang.Object
-
- org.sdase.commons.server.security.SecurityBundle<T>
-
- All Implemented Interfaces:
io.dropwizard.ConfiguredBundle<T>
public class SecurityBundle<T extends io.dropwizard.Configuration> extends java.lang.Object implements io.dropwizard.ConfiguredBundle<T>
AConfiguredBundle
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:
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SecurityBundle.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SecurityBundle.Builder
builder()
void
initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
void
run(T configuration, io.dropwizard.setup.Environment environment)
-
-
-
Method Detail
-
builder
public static SecurityBundle.Builder builder()
-
initialize
public void initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
- Specified by:
initialize
in interfaceio.dropwizard.ConfiguredBundle<T extends io.dropwizard.Configuration>
-
-