| Modifier and Type | Field and Description |
|---|---|
| public static final String | APACHE_DISALLOW_DOCTYPE_DECL
This is the PRIMARY defense. |
| public static final String | APACHE_LOAD_EXTERNAL_DTD
Disable external DTDs as well. |
| public static final String | XML_EXTERNAL_GENERAL_ENTITIES
If you can't completely disable DTDs, then at least do the following. |
| public static final String | XML_EXTERNAL_PARAMETER_ENTITIES
This feature has to be used together with the previous one(external-general-entities), otherwise it will not protect you from XXE for sure Do not include external parameter entities or the external DTD subset. |
| Access | Constructor and Description |
|---|---|
| private |
| APACHE_DISALLOW_DOCTYPE_DECL | back to summary |
|---|---|
| public static final String APACHE_DISALLOW_DOCTYPE_DECL This is the PRIMARY defense. If DTDs (doctypes) are disallowed, almost all XML entity attacks are prevented Xerces 2 only: | |
| APACHE_LOAD_EXTERNAL_DTD | back to summary |
|---|---|
| public static final String APACHE_LOAD_EXTERNAL_DTD Disable external DTDs as well. | |
| XML_EXTERNAL_GENERAL_ENTITIES | back to summary |
|---|---|
| public static final String XML_EXTERNAL_GENERAL_ENTITIES If you can't completely disable DTDs, then at least do the following. This feature has to be used together with the following one (external-parameter-entities), otherwise it will not protect you from XXE for sure Do not include external general entities. Xerces 1: | |
| XML_EXTERNAL_PARAMETER_ENTITIES | back to summary |
|---|---|
| public static final String XML_EXTERNAL_PARAMETER_ENTITIES This feature has to be used together with the previous one(external-general-entities), otherwise it will not protect you from XXE for sure Do not include external parameter entities or the external DTD subset. | |
| FactoryConstants | back to summary |
|---|---|
| private FactoryConstants() No instance. | |