org.appng.api.support

## Class XSSHelper

- java.lang.Object
- - org.appng.api.support.XSSHelper

-     public class XSSHelper
      extends Object

  Utility class for creating `XSSUtil`-instances.
  Author:
    Matthias Müller

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `XSSHelper()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static XSSUtil` | `getXssUtil(Properties platformProps, String... exceptions)` Creates and returns a `XSSUtil`. If the boolean property `xssProtect` of the given `Properties` is `true`, a new `XSSUtil` is being created.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### XSSHelper

          public XSSHelper()

  - ### Method Detail

    - #### getXssUtil

          public static XSSUtil getXssUtil(Properties platformProps,
                                           String... exceptions)

      Creates and returns a `XSSUtil`.
      If the boolean property `xssProtect` of the given `Properties` is `true`, a new `XSSUtil` is being created. The list-type property `xssAllowedTags` can be used to allow additional tags and attributes. The format is:

           <tag1> <attribute1a> <attribute1b>|<tag2> <attribute2a> <attribute2b>

      Example:

           h1|h2|a href class style|div align style

      Parameters:
        `platformProps` -
        `exceptions` -
      Returns:

Copyright © 2011–2023 aiticon GmbH. All rights reserved.