You are here

interface SeckitInterface in Security Kit 8

Same name and namespace in other branches
  1. 2.x src/SeckitInterface.php \Drupal\seckit\SeckitInterface

Provides an interface Seckit module.

Hierarchy

Expanded class hierarchy of SeckitInterface

All classes that implement SeckitInterface

3 files declare their use of SeckitInterface
SecKitEventSubscriber.php in src/EventSubscriber/SecKitEventSubscriber.php
SecKitSettingsForm.php in src/Form/SecKitSettingsForm.php
SecKitTestCaseTest.php in tests/src/Functional/SecKitTestCaseTest.php

File

src/SeckitInterface.php, line 8

Namespace

Drupal\seckit
View source
interface SeckitInterface {

  /**
   * Disable X-XSS-Protection HTTP header.
   */
  const X_XSS_DISABLE = 0;

  /**
   * Set X-XSS-Protection HTTP header to 0.
   */
  const X_XSS_0 = 1;

  /**
   * Set X-XSS-Protection HTTP header to 1; mode=block.
   */
  const X_XSS_1_BLOCK = 2;

  /**
   * Set X-XSS-Protection HTTP header to 1.
   */
  const X_XSS_1 = 3;

  /**
   * Disable X-Frame-Options HTTP header.
   */
  const X_FRAME_DISABLE = 0;

  /**
   * Set X-Frame-Options HTTP header to SAMEORIGIN.
   */
  const X_FRAME_SAMEORIGIN = 1;

  /**
   * Set X-Frame-Options HTTP header to DENY.
   */
  const X_FRAME_DENY = 2;

  /**
   * Set X-Frame-Options HTTP header to ALLOW-FROM.
   */
  const X_FRAME_ALLOW_FROM = 3;

  /**
   * Set the URI to POST to for the CSP report-uri directive.
   */
  const CSP_REPORT_URL = '/report-csp-violation';

}

Members

Namesort descending Modifiers Type Description Overrides
SeckitInterface::CSP_REPORT_URL constant Set the URI to POST to for the CSP report-uri directive.
SeckitInterface::X_FRAME_ALLOW_FROM constant Set X-Frame-Options HTTP header to ALLOW-FROM.
SeckitInterface::X_FRAME_DENY constant Set X-Frame-Options HTTP header to DENY.
SeckitInterface::X_FRAME_DISABLE constant Disable X-Frame-Options HTTP header.
SeckitInterface::X_FRAME_SAMEORIGIN constant Set X-Frame-Options HTTP header to SAMEORIGIN.
SeckitInterface::X_XSS_0 constant Set X-XSS-Protection HTTP header to 0.
SeckitInterface::X_XSS_1 constant Set X-XSS-Protection HTTP header to 1.
SeckitInterface::X_XSS_1_BLOCK constant Set X-XSS-Protection HTTP header to 1; mode=block.
SeckitInterface::X_XSS_DISABLE constant Disable X-XSS-Protection HTTP header.