@ThreadSafe
final class PdfFilePathValidator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
PdfFilePathValidator.BasePath |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
PDF_EXTENSION |
private PdfConfiguration |
pdfConfiguration |
Constructor and Description |
---|
PdfFilePathValidator(PdfConfiguration pdfConfiguration) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
toFile(PdfFile pdfFile) |
void |
validateFiles(PdfFiles fileList)
Validate files for content, path traversal attack and file extension
|
private static final java.lang.String PDF_EXTENSION
private final PdfConfiguration pdfConfiguration
@Inject public PdfFilePathValidator(PdfConfiguration pdfConfiguration)