Interface IXssBlacklist

All Known Implementing Classes:
DefaultXssBlackList, NullXssBlacklist

public interface IXssBlacklist
Cross-site scripting (XSS) filter which uses a blacklist to sanitize potentially unsafe input.
Since:
9.9.7
Author:
Petru Galanton
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isValid(String input)
    Checks the provided input against this blacklist.
    Checks the provided input against this blacklist and returns the sanitized input.
  • Method Details

    • sanitize

      String sanitize(String input)
      Checks the provided input against this blacklist and returns the sanitized input.
      Parameters:
      input - the input to be checked
      Returns:
      the sanitized input
    • isValid

      boolean isValid(String input)
      Checks the provided input against this blacklist.
      Parameters:
      input - the input to be checked
      Returns:
      true if the input is valid, false otherwise.