Package overit.geocall.util.services
Class CSPSafenessPropertiesServiceImpl
java.lang.Object
overit.geocall.util.services.CSPSafenessPropertiesServiceImpl
- All Implemented Interfaces:
CSPSafenessPropertiesService
@Service
public class CSPSafenessPropertiesServiceImpl
extends Object
implements CSPSafenessPropertiesService
-
Field Summary
Fields inherited from interface overit.geocall.util.services.CSPSafenessPropertiesService
CSP_SAFE, CSP_SAFE_EVAL, CSP_SAFE_INLINE_HANDLER, CSP_SAFE_INLINE_SCRIPT, CSP_SAFE_INLINE_STYLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if eval() function safeness is active.booleanChecks if inline event handler safeness is active.booleanChecks if inline script tag safeness is active.booleanChecks if inline style tag safeness is active.
-
Constructor Details
-
CSPSafenessPropertiesServiceImpl
public CSPSafenessPropertiesServiceImpl()
-
-
Method Details
-
isInlineScriptSafenessActive
public boolean isInlineScriptSafenessActive()Description copied from interface:CSPSafenessPropertiesServiceChecks if inline script tag safeness is active. When active, the system will inject nonce attributes into script-src CSP directive to allow the execution of inline script tags in a CSP-compliant way.- Specified by:
isInlineScriptSafenessActivein interfaceCSPSafenessPropertiesService- Returns:
trueif inline script tag safeness is active,falseotherwise
-
isInlineStyleSafenessActive
public boolean isInlineStyleSafenessActive()Description copied from interface:CSPSafenessPropertiesServiceChecks if inline style tag safeness is active. When active, the system will inject nonce attributes into style-src CSP directive to allow the execution of inline style tags in a CSP-compliant way.- Specified by:
isInlineStyleSafenessActivein interfaceCSPSafenessPropertiesService- Returns:
trueif inline style tag safeness is active,falseotherwise
-
isInlineHandlerSafenessActive
public boolean isInlineHandlerSafenessActive()Description copied from interface:CSPSafenessPropertiesServiceChecks if inline event handler safeness is active. When active, the system will replace traditional inline event handlers (like onclick) with data-event-* attributes and appropriate CSS classes that are processed by the SafeInlineEngine.- Specified by:
isInlineHandlerSafenessActivein interfaceCSPSafenessPropertiesService- Returns:
trueif inline event handler safeness is active,falseotherwise
-
isEvalSafenessActive
public boolean isEvalSafenessActive()Description copied from interface:CSPSafenessPropertiesServiceChecks if eval() function safeness is active. When active, the system will replace traditional window.eval() function calls with a custom and safe management of the function that is compatible with CSP restrictions.- Specified by:
isEvalSafenessActivein interfaceCSPSafenessPropertiesService- Returns:
trueif eval() function safeness is active,falseotherwise
-