com.opensymphony.xwork2.security

## Interface AcceptedPatternsChecker

- All Known Implementing Classes:
    DefaultAcceptedPatternsChecker

      public interface AcceptedPatternsChecker

  Used across different interceptors to check if given string matches one of the excluded patterns.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `AcceptedPatternsChecker.IsAccepted`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Set<Pattern>` | `getAcceptedPatterns()` Allow access list of all defined excluded patterns
    `AcceptedPatternsChecker.IsAccepted` | `isAccepted(String value)` Checks if value matches any of patterns on exclude list
    `void` | `setAcceptedPatterns(Set<String> patterns)` Sets excluded patterns during runtime
    `void` | `setAcceptedPatterns(String commaDelimitedPatterns)` Sets excluded patterns during runtime
    `void` | `setAcceptedPatterns(String[] patterns)` Set excluded patterns during runtime

- - ### Method Detail

    - #### isAccepted

          AcceptedPatternsChecker.IsAccepted isAccepted(String value)

      Checks if value matches any of patterns on exclude list
      Parameters:
        `value` - to check
      Returns:
        object containing result of matched pattern and pattern itself

    - #### setAcceptedPatterns

          void setAcceptedPatterns(String commaDelimitedPatterns)

      Sets excluded patterns during runtime
      Parameters:
        `commaDelimitedPatterns` - comma delimited string with patterns

    - #### setAcceptedPatterns

          void setAcceptedPatterns(String[] patterns)

      Set excluded patterns during runtime
      Parameters:
        `patterns` - array of additional excluded patterns

    - #### setAcceptedPatterns

          void setAcceptedPatterns(Set<String> patterns)

      Sets excluded patterns during runtime
      Parameters:
        `patterns` - set of additional patterns

    - #### getAcceptedPatterns

          Set<Pattern> getAcceptedPatterns()

      Allow access list of all defined excluded patterns
      Returns:
        set of excluded patterns

Copyright © 2000–2019 Apache Software Foundation. All rights reserved.