Initially that is what I had, but as all other Spring Security Filters extend GenericFilterBean I figured lets go with that one instead. But chancing it wouldn't be a problem makes the filter a little cleaner also.