Class SecurityBundle<T extends io.dropwizard.core.Configuration>

java.lang.Object
org.sdase.commons.server.security.SecurityBundle<T>
All Implemented Interfaces:
io.dropwizard.core.ConfiguredBundle<T>

public class SecurityBundle<T extends io.dropwizard.core.Configuration> extends Object implements io.dropwizard.core.ConfiguredBundle<T>
A 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:

  • Method Details

    • builder

      public static SecurityBundle.Builder builder()
    • initialize

      public void initialize(io.dropwizard.core.setup.Bootstrap<?> bootstrap)
      Specified by:
      initialize in interface io.dropwizard.core.ConfiguredBundle<T extends io.dropwizard.core.Configuration>
    • run

      public void run(T configuration, io.dropwizard.core.setup.Environment environment)
      Specified by:
      run in interface io.dropwizard.core.ConfiguredBundle<T extends io.dropwizard.core.Configuration>