| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | checkForCollectionDoSAttack(final UnmarshallingContext
the unmarshalling context context, final long the timestamp just before the element was added to the collection or map start)Check the consumed time adding elements to collections or maps. |
| SecurityUtils | back to summary |
|---|---|
| public SecurityUtils() | |
| checkForCollectionDoSAttack | back to summary |
|---|---|
| public static void checkForCollectionDoSAttack(final UnmarshallingContext context, final long start) Check the consumed time adding elements to collections or maps. Every custom converter should call this method after an unmarshalled element has been added to a collection or map. In case of an attack the operation will take too long, because the calculation of the hash code or the comparison of the elements in the collection operate on recursive structures.
| |