@FilterWith(value=HSTS.Filter.class) @Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) @Inherited @Documented public @interface HSTS
Modifier and Type | Optional Element and Description |
---|---|
boolean |
includeSubDomains
includeSubDomains directive.
|
long |
maxAge
max-age directive, in seconds.
|
public abstract long maxAge
Don't set this to a too high value in order to prevent privacy issues for your users. See this security.stackexchange answer and The double edged sword of HSTS persistence and privacy for tremendous details.
Default to werval.filters.hsts.max_age configuration property value.