-
- All Implemented Interfaces:
public final class GlobalHeaderConfig
A plugin to configure arbitrary headers, with a focus on the OWASP secure headers project https://owasp.org/www-project-secure-headers/
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
GlobalHeaderConfig.XFrameOptions
public enum
GlobalHeaderConfig.CrossDomainPolicy
public enum
GlobalHeaderConfig.ReferrerPolicy
public enum
GlobalHeaderConfig.ClearSiteData
public enum
GlobalHeaderConfig.CrossOriginEmbedderPolicy
public enum
GlobalHeaderConfig.CrossOriginOpenerPolicy
public enum
GlobalHeaderConfig.CrossOriginResourcePolicy
-
Constructor Summary
Constructors Constructor Description GlobalHeaderConfig()
-
Method Summary
Modifier and Type Method Description final Map<String, String>
getHeaders()
final Unit
strictTransportSecurity(Duration duration, Boolean includeSubdomains)
final Unit
xFrameOptions(GlobalHeaderConfig.XFrameOptions xFrameOptions)
final Unit
xFrameOptions(String domain)
final Unit
xContentTypeOptionsNoSniff()
final Unit
contentSecurityPolicy(String contentSecurityPolicy)
final Unit
xPermittedCrossDomainPolicies(GlobalHeaderConfig.CrossDomainPolicy policy)
final Unit
referrerPolicy(GlobalHeaderConfig.ReferrerPolicy policy)
final Unit
clearSiteData(GlobalHeaderConfig.ClearSiteData data)
final Unit
crossOriginEmbedderPolicy(GlobalHeaderConfig.CrossOriginEmbedderPolicy policy)
final Unit
crossOriginOpenerPolicy(GlobalHeaderConfig.CrossOriginOpenerPolicy policy)
final Unit
crossOriginResourcePolicy(GlobalHeaderConfig.CrossOriginResourcePolicy policy)
-
-
Method Detail
-
getHeaders
final Map<String, String> getHeaders()
-
strictTransportSecurity
final Unit strictTransportSecurity(Duration duration, Boolean includeSubdomains)
-
xFrameOptions
final Unit xFrameOptions(GlobalHeaderConfig.XFrameOptions xFrameOptions)
-
xFrameOptions
final Unit xFrameOptions(String domain)
-
xContentTypeOptionsNoSniff
final Unit xContentTypeOptionsNoSniff()
-
contentSecurityPolicy
final Unit contentSecurityPolicy(String contentSecurityPolicy)
-
xPermittedCrossDomainPolicies
final Unit xPermittedCrossDomainPolicies(GlobalHeaderConfig.CrossDomainPolicy policy)
-
referrerPolicy
final Unit referrerPolicy(GlobalHeaderConfig.ReferrerPolicy policy)
-
clearSiteData
final Unit clearSiteData(GlobalHeaderConfig.ClearSiteData data)
-
crossOriginEmbedderPolicy
final Unit crossOriginEmbedderPolicy(GlobalHeaderConfig.CrossOriginEmbedderPolicy policy)
-
crossOriginOpenerPolicy
final Unit crossOriginOpenerPolicy(GlobalHeaderConfig.CrossOriginOpenerPolicy policy)
-
crossOriginResourcePolicy
final Unit crossOriginResourcePolicy(GlobalHeaderConfig.CrossOriginResourcePolicy policy)
-
-
-
-