Class UrlRules


  • public class UrlRules
    extends Object
    • Constructor Detail

      • UrlRules

        public UrlRules()
    • Method Detail

      • isInsecure

        public static boolean isInsecure​(String identifier)
        Checks if the value of identifier could introduce vulnerabilities like path traversal.
        Parameters:
        identifier - the identifier to check.
        Returns:
        true, if there are possible vulnerabilities
      • anyIsInsecure

        public static boolean anyIsInsecure​(String... identifiers)
        Checks if the value of any identifier could introduce vulnerabilities like path traversal.
        Parameters:
        identifiers - the list of identifier to check.
        Returns:
        true, if there are possible vulnerabilities in any identifiers