Csp Module
Api\CspAwareActionInterface
This interface allows Magento 2 controllers to customize Content Security Policy (CSP) headers for specific routes or pages. Developers implement this...
Api\CspRendererInterface
This interface defines a contract for rendering Content Security Policy (CSP) headers into HTTP responses. Developers implement this interface to appl...
Api\Data\ModeConfiguredInterface
This interface defines the configuration mode for Content Security Policy (CSP) in Magento 2. Developers use this to determine whether CSP violations...
Api\Data\PolicyInterface
This interface defines the contract for Content Security Policy (CSP) objects in Magento 2. Developers use this to create or work with CSP rules that...
Api\InlineUtilInterface
This interface provides utility methods for safely rendering HTML tags and event listeners while automatically whitelisting them in Content Security P...
Api\ModeConfigManagerInterface
This interface defines a contract for managing Content Security Policy (CSP) mode configurations in Magento 2. Developers use this to retrieve CSP set...
Api\PolicyCollectorInterface
This interface defines the contract for collecting Content Security Policy (CSP) configurations from various sources in Magento 2. Developers implemen...
Api\PolicyRendererInterface
This interface defines how Content Security Policy (CSP) rules are rendered and applied to HTTP responses in Magento 2. Developers implement this inte...
BlockCache
This class wraps Magento's cache interface to store both block HTML content and associated Content Security Policy (CSP) rules together. When develope...
Collector\CompositeMerger
This class acts as a coordinator for merging Content Security Policy (CSP) configurations by delegating the work to specialized merger implementations...
Collector\ConfigCollector
This class collects Content Security Policy (CSP) configurations from Magento's system configuration for both admin and storefront areas. It reads CSP...
Collector\Config\FetchPolicyReader
This class reads and parses Content Security Policy (CSP) fetch directive configurations from Magento's configuration system. Developers use this to v...
Collector\Config\FlagPolicyReader
This class reads and creates CSP (Content Security Policy) flag policies from configuration. Developers use this when implementing security policies t...
Collector\Config\PluginTypesPolicyReader
This class reads and processes Content Security Policy (CSP) plugin-types directives from Magento configuration. Developers use this when configuring...
Collector\Config\PolicyReaderPool
This class manages a pool of policy readers for Content Security Policy (CSP) configuration. Developers use it to retrieve the appropriate reader for...
Collector\Config\SandboxPolicyReader
This class reads and creates Content Security Policy (CSP) sandbox directive configurations from Magento's config files. Developers use this to parse...
Collector\ControllerCollector
This class collects Content Security Policy (CSP) rules from controller actions that implement CspAwareActionInterface. Developers use this when they...
Collector\CspWhitelistXmlCollector
This class collects Content Security Policy (CSP) rules defined in csp_whitelist.xml configuration files across Magento modules. Developers use this w...
Collector\CspWhitelistXml\Converter
This class converts csp_whitelist.xml configuration files into a structured PHP array format that Magento can use. Developers use this when defining C...
Collector\CspWhitelistXml\Data
This class manages the loading and caching of Content Security Policy (CSP) whitelist configuration data from XML files in Magento 2. Developers inter...
Collector\CspWhitelistXml\FileResolver
This class resolves and combines CSP (Content Security Policy) whitelist XML configuration files from both modules and the current theme hierarchy. De...
Collector\CspWhitelistXml\Reader
This class reads and parses csp_whitelist.xml configuration files in Magento 2, which define Content Security Policy (CSP) whitelists for securing web...
Collector\CspWhitelistXml\SchemaLocator
This class provides the location of the XSD schema file used to validate CSP (Content Security Policy) whitelist XML configuration files. Developers u...
Collector\DynamicCollector
This class allows developers to dynamically add Content Security Policy (CSP) rules during page rendering, such as from .phtml templates. It collects...
Collector\FetchPolicyMerger
This class merges two Content Security Policy (CSP) fetch policies into a single unified policy. Developers use this when combining CSP rules from mul...
Collector\FlagPolicyMerger
This class handles the merging of Content Security Policy (CSP) flag policies in Magento 2. When multiple flag-type CSP policies need to be combined,...
Collector\PluginTypesPolicyMerger
This class merges Content Security Policy (CSP) plugin-types directives from multiple sources. Developers use this when Magento needs to combine multi...
Collector\SandboxPolicyMerger
This class merges two Content Security Policy (CSP) sandbox policies into one by combining their permissions using logical OR operations. When multipl...
CompositePolicyCollector
This class collects Content Security Policy (CSP) rules from multiple sources and merges them into a unified set. Developers use this when they need t...
CspNonceProvider
This helper class generates secure cryptographic nonces (number used once) for Content Security Policy (CSP) headers. Developers use this when they ne...
CspRenderer
This class is responsible for rendering Content Security Policy (CSP) headers in HTTP responses. It collects all defined CSP policies and uses appropr...
InlineUtil
This helper class provides utilities for rendering HTML tags and event handlers while automatically managing Content Security Policy (CSP) requirement...
Mode\ConfigManager
This class manages Content Security Policy (CSP) mode configuration for Magento 2 storefronts and admin areas. Developers use it to retrieve CSP setti...
Mode\Data\ModeConfigured
This class represents the configured Content Security Policy (CSP) mode settings for Magento 2. Developers use this to determine whether CSP is runnin...
Model\Collector\Config\PolicyReaderInterface
This interface defines a contract for reading Content Security Policy (CSP) configurations from Magento's config storage and converting them into poli...
Model\Collector\MergerInterface
This interface defines the contract for merging Content Security Policy (CSP) objects that share the same policy ID. Developers would implement this i...
Model\Policy\SimplePolicyInterface
This interface represents a simple Content Security Policy (CSP) that uses a default prefix and ID-value combination. Developers would implement this...
Model\SubresourceIntegrity\StorageInterface
This interface defines a storage contract for managing Subresource Integrity (SRI) hashes in Magento 2. Developers implement this interface to create...
PolicyRendererPool
This class manages a pool of policy renderers for Content Security Policy (CSP) headers. Developers use it to find and retrieve the appropriate render...
Policy\FetchPolicy
This class represents a Content Security Policy (CSP) fetch directive in Magento 2, defining what sources are allowed to load resources like scripts,...
Policy\FlagPolicy
This class represents Content Security Policy (CSP) directives that act as flags without requiring values, such as 'upgrade-insecure-requests' and 'bl...
Policy\PluginTypesPolicy
This class implements a Content Security Policy (CSP) for controlling which plugin MIME types are allowed to be loaded on a page. Developers use this...
Policy\Renderer\SimplePolicyHeaderRenderer
This class renders Content Security Policy (CSP) directives as HTTP response headers in Magento 2. It converts simple policy objects into either 'Cont...
Policy\SandboxPolicy
This class represents a Content Security Policy (CSP) sandbox directive that restricts page functionality similar to iframe sandboxing. Developers use...
SubresourceIntegrity
This class represents Subresource Integrity (SRI) data for external resources in Magento 2. Developers use it to store and retrieve the path and crypt...
SubresourceIntegrityCollector
This class collects and stores SubresourceIntegrity objects that are used for CSP (Content Security Policy) security features. Developers would use th...
SubresourceIntegrityRepository
This repository manages Subresource Integrity (SRI) hashes for static assets in Magento 2. Developers use it to store, retrieve, and manage cryptograp...
SubresourceIntegrityRepositoryPool
This class manages a pool of SubresourceIntegrityRepository instances, creating and caching them based on context (like 'storefront' or 'adminhtml')....
SubresourceIntegrity\HashGenerator
This class generates Subresource Integrity (SRI) hashes for content, which are used to verify that resources loaded from external sources haven't been...
SubresourceIntegrity\SriEnabledActions
This class manages which controller actions in Magento 2 should have Subresource Integrity (SRI) attributes enabled for payment pages. Developers woul...
SubresourceIntegrity\Storage\File
This class manages file-based storage for Subresource Integrity (SRI) hashes in Magento 2's CSP system. Developers use this to store, retrieve, and de...