Package io.swagger.codegen.utils
Class SecureFileUtils
- java.lang.Object
-
- io.swagger.codegen.utils.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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidvalidatePath(File file)static voidvalidatePath(String path)
-