What would be the best way to obtain some information from the client's browser ( basic info available in the user-agent) and pass it through spring security classes and send it along with username and password in the authenticate method.

( I am using an application with spring security on my end that uses web-service calls to verify authentication information)