Class SecurityBundle.Builder
java.lang.Object
org.sdase.commons.server.security.SecurityBundle.Builder
- Enclosing class:
- SecurityBundle<T extends io.dropwizard.core.Configuration>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSecurityBundle<io.dropwizard.core.Configuration>
build()
Switches from suppressing the application start to a warn logging for violated buffer limits.If a service is configured with frontend support, theContent-Security-Policy
header allows the same domain as source for scripts, images, styles and fonts.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
disableBufferLimitValidation
Switches from suppressing the application start to a warn logging for violated buffer limits. In rare cases an application might need to increase the default limits and therefore has to disable strict validation. This option should be used with care.- Returns:
- this builder instance
-
withFrontendSupport
If a service is configured with frontend support, theContent-Security-Policy
header allows the same domain as source for scripts, images, styles and fonts. Otherwise, only API endpoints can be served andContent-Security-Policy
does not allow any sources.- Returns:
- this builder instance
- See Also:
-
build
-