| Modifier and Type | Class and Description |
|---|---|
| public static enum | XMLLimitAnalyzer.
Map old property names with the new ones |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | caches
Maintain values of the top 10 elements in the process of parsing |
| private String | |
| private String | |
| private final String[] | names
Names of the entities corresponding to their max values |
| private final int[] | totalValue
Total value of accumulated entities |
| private final int[] | values
Max value accumulated for each property |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addValue(XMLSecurityManager.
the type of the property limit,the name of the entity entityName, int the value of the entity value)Add the value to the current max count for the specified property To find the max value of all entities, set no limit |
| public void | |
| public void | |
| public void | endEntity(XMLSecurityManager.
the limit property limit,the name of an entity name)Stop tracking the entity |
| public int | Returns: the accumulated value of the propertythe property limitReturn the total value accumulated so far |
| public int | |
| public int | Returns: the value of the propertythe property limitReturn the value of the current max count for the specified property |
| public int | |
| public int | Returns: count of a propertythe index of a property index)Return the current max value (count or length) by the index of a property |
| public boolean | |
| public void | reset(XMLSecurityManager.
The limit to be reset. limitResets the current value of the specified limit. |
| public void |
| caches | back to summary |
|---|---|
| private final Map<String, Integer>[] caches Maintain values of the top 10 elements in the process of parsing | |
| entityEnd | back to summary |
|---|---|
| private String entityEnd | |
| entityStart | back to summary |
|---|---|
| private String entityStart | |
| names | back to summary |
|---|---|
| private final String[] names Names of the entities corresponding to their max values | |
| totalValue | back to summary |
|---|---|
| private final int[] totalValue Total value of accumulated entities | |
| values | back to summary |
|---|---|
| private final int[] values Max value accumulated for each property | |
| XMLLimitAnalyzer | back to summary |
|---|---|
| public XMLLimitAnalyzer() Default constructor. Establishes default values for known security vulnerabilities.
| |
| addValue | back to summary |
|---|---|
| public void addValue(XMLSecurityManager. Add the value to the current max count for the specified property To find the max value of all entities, set no limit
| |
| addValue | back to summary |
|---|---|
| public void addValue(int index, String entityName, int value) Add the value to the current count by the index of the property
| |
| debugPrint | back to summary |
|---|---|
| public void debugPrint(XMLSecurityManager securityManager) | |
| endEntity | back to summary |
|---|---|
| public void endEntity(XMLSecurityManager. Stop tracking the entity
| |
| getTotalValue | back to summary |
|---|---|
| public int getTotalValue(XMLSecurityManager. Return the total value accumulated so far
| |
| getTotalValue | back to summary |
|---|---|
| public int getTotalValue(int index) | |
| getValue | back to summary |
|---|---|
| public int getValue(XMLSecurityManager. Return the value of the current max count for the specified property
| |
| getValue | back to summary |
|---|---|
| public int getValue(int index) | |
| getValueByIndex | back to summary |
|---|---|
| public int getValueByIndex(int index) Return the current max value (count or length) by the index of a property
| |
| isTracking | back to summary |
|---|---|
| public boolean isTracking(String name) | |
| reset | back to summary |
|---|---|
| public void reset(XMLSecurityManager. Resets the current value of the specified limit.
| |
| startEntity | back to summary |
|---|---|
| public void startEntity(String name) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final XMLLimitAnalyzer. | |
| public static final XMLLimitAnalyzer. | |
| public static final XMLLimitAnalyzer. | |
| pack-priv final String | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv String | |
| public static XMLLimitAnalyzer. | |
| public static XMLLimitAnalyzer. |
| ELEMENT_ATTRIBUTE_LIMIT | back to summary |
|---|---|
| public static final XMLLimitAnalyzer. | |
| ENTITY_EXPANSION_LIMIT | back to summary |
|---|---|
| public static final XMLLimitAnalyzer. | |
| MAX_OCCUR_NODE_LIMIT | back to summary |
|---|---|
| public static final XMLLimitAnalyzer. | |
| newName | back to summary |
|---|---|
| pack-priv final String newName | |
| oldName | back to summary |
|---|---|
| pack-priv final String oldName | |
| NameMap | back to summary |
|---|---|
| private NameMap(String newName, String oldName) | |
| getOldName | back to summary |
|---|---|
| pack-priv String getOldName(String newName) | |
| valueOf | back to summary |
|---|---|
| public static XMLLimitAnalyzer. | |
| values | back to summary |
|---|---|
| public static XMLLimitAnalyzer. | |