Package org.apache.spark.ui
Class CspNonce
Object
org.apache.spark.ui.CspNonce
Thread-local storage for CSP nonce values.
A nonce is generated per request in HttpSecurityFilter and used by UI pages
to mark inline scripts and styles as trusted.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CspNonce
public CspNonce()
-
-
Method Details
-
generate
Generate a new nonce and store it in the current thread. -
get
Get the nonce for the current request. -
clear
public static void clear()Remove the nonce after the request is complete.
-