Log in
Model

Config

Magento\Securitytxt\Model\Config

What it does

This config model provides access to security.txt configuration settings for a Magento 2 store.

Developers use this class to retrieve security contact information (email, phone, contact page) and additional security details (encryption keys, acknowledgements, hiring info, policy URLs) that are displayed in the security.txt file, which helps security researchers report vulnerabilities responsibly.

Public Methods

  • isEnabled()
  • getEmail()
  • getPhone()
  • getContactPage()
  • getEncryption()
  • getAcknowledgements()
  • getPreferredLanguages()
  • getHiring()
  • getPolicy()
  • getSignature()