Class SecureFileUtils


  • public class SecureFileUtils
    extends Object
    Utility class for secure file operations that prevent path traversal attacks. Uses a simplified approach focusing on canonical path validation and allowlist-based security.
    • Method Detail

      • validatePath

        public static void validatePath​(File file)
      • validatePath

        public static void validatePath​(String path)