SEC-2326: CsrfRequestDataValueProcessor implements RequestDataValueProcessor

Previously there was unecessary complexity in CsrfRequestDataValueProcessor
due to the non-passive changes in RequestDataValueProcessor. Now it simply
implements the interface with the methods for both versions of the interface.
This works since linking happens at runtime.
This commit is contained in:
Rob Winch
2013-12-12 08:07:22 -06:00
parent 6f9085dd5d
commit aaa7cec32e
4 changed files with 4 additions and 59 deletions

View File

@@ -126,7 +126,7 @@ public class CsrfRequestDataValueProcessorTests {
Map<String,String> expected = new HashMap<String,String>();
expected.put(token.getParameterName(),token.getToken());
RequestDataValueProcessor processor = CsrfRequestDataValueProcessor.create();
RequestDataValueProcessor processor = new CsrfRequestDataValueProcessor();
assertThat(processor.getExtraHiddenFields(request)).isEqualTo(expected);
}
}