case class CSPNonceConfig(enabled: Boolean = true, pattern: String = CPSNonceConfig.DEFAULT_CSP_NONCE_PATTERN, header: Boolean = true) extends Product with Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- CSPNonceConfig
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new CSPNonceConfig()
Java constructor
- new CSPNonceConfig(enabled: Boolean = true, pattern: String = CPSNonceConfig.DEFAULT_CSP_NONCE_PATTERN, header: Boolean = true)
- enabled
if true, a nonce is generated in processing
- pattern
the pattern in directives to substitute with nonce, DEFAULT_CSP_NONCE_PATTERN by default.
- header
if true, renders HeaderNames.X_CONTENT_SECURITY_POLICY_NONCE_HEADER
Value Members
- val enabled: Boolean
- val header: Boolean
- val pattern: String
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def withEnabled(enabled: Boolean): CSPNonceConfig
- def withHeader(header: Boolean): CSPNonceConfig
- def withPattern(pattern: String): CSPNonceConfig
CSP Nonce Configuration.
if true, a nonce is generated in processing
the pattern in directives to substitute with nonce, DEFAULT_CSP_NONCE_PATTERN by default.
if true, renders HeaderNames.X_CONTENT_SECURITY_POLICY_NONCE_HEADER