Class LibPstParserConfig.RuntimeConfig
java.lang.Object
org.apache.tika.parser.microsoft.libpst.LibPstParserConfig
org.apache.tika.parser.microsoft.libpst.LibPstParserConfig.RuntimeConfig
- All Implemented Interfaces:
Serializable
- Enclosing class:
- LibPstParserConfig
RuntimeConfig blocks modification of security-sensitive path fields at runtime.
When a config is obtained from ParseContext (i.e. user-provided at parse time),
it should be deserialized as a RuntimeConfig to prevent path injection.
This class is deserialized by ConfigDeserializer (in tika-serialization) which uses Jackson to populate fields via setters. If the JSON contains any path fields, the overridden setters will throw TikaConfigException.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.tika.parser.microsoft.libpst.LibPstParserConfig
LibPstParserConfig.RuntimeConfig -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.tika.parser.microsoft.libpst.LibPstParserConfig
getMaxEmails, getReadPstPath, getTimeoutSeconds, isDebug, isIncludeDeleted, isProcessEmailAsMsg, setDebug, setIncludeDeleted, setMaxEmails, setProcessEmailAsMsg, setTimeoutSeconds
-
Constructor Details
-
RuntimeConfig
public RuntimeConfig()
-
-
Method Details
-
setReadPstPath
- Overrides:
setReadPstPathin classLibPstParserConfig- Throws:
TikaConfigException
-