Spring Security with multiple input authentications