Class SecurityBundle<T extends io.dropwizard.Configuration>

  • All Implemented Interfaces:
    io.dropwizard.ConfiguredBundle<T>

    public class SecurityBundle<T extends io.dropwizard.Configuration>
    extends java.lang.Object
    implements io.dropwizard.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 Detail

      • initialize

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

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