SubresourceIntegrityRepository
Magento\Csp\Model\SubresourceIntegrityRepository
What it does
This repository manages Subresource Integrity (SRI) hashes for static assets in Magento 2.
Developers use it to store, retrieve, and manage cryptographic hashes that verify the integrity of external resources like JavaScript and CSS files, providing security against tampering.
It handles loading data from storage, saving individual or bulk integrity objects, and clearing all stored hashes.
Public Methods
- getByPath()
- getAll()
- save()
- saveBunch()
- deleteAll()