Class UrlRules
- java.lang.Object
-
- de.digitalcollections.iiif.hymir.util.UrlRules
-
public class UrlRules extends Object
-
-
Constructor Summary
Constructors Constructor Description UrlRules()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
anyIsInsecure(String... identifiers)
Checks if the value of any identifier could introduce vulnerabilities like path traversal.static boolean
isInsecure(String identifier)
Checks if the value of identifier could introduce vulnerabilities like path traversal.
-
-
-
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
-
-