public interface CSPHandler extends SecurityPolicyHandler
Modifier and Type | Method and Description |
---|---|
CSPHandler |
addDirective(String name,
String value)
Adds a single directive entry to the handler.
|
static CSPHandler |
create()
Creates a new instance of the handler.
|
CSPHandler |
setDirective(String name,
String value)
Sets a single directive entry to the handler.
|
CSPHandler |
setReportOnly(boolean reportOnly)
To ease deployment, CSP can be deployed in report-only mode.
|
static CSPHandler create()
CSPHandler setDirective(String name, String value)
name
- the directive namevalue
- the directive value.CSPHandler addDirective(String name, String value)
name
- the directive namevalue
- the directive value.CSPHandler setReportOnly(boolean reportOnly)
reportOnly
- enable report onlyCopyright © 2024 Eclipse. All rights reserved.