Android programming: Authentication and data exchange with Java EE
Posted
by Konsumierer
on Stack Overflow
See other posts from Stack Overflow
or by Konsumierer
Published on 2010-04-27T16:19:24Z
Indexed on
2010/04/27
16:23 UTC
Read the original article
Hit count: 223
I am having a Java application running in a Tomcat server using Spring, Hibernate, etc. and a two web interfaces, one implemented in Tapestry 5 and the other one using Flex with BlazeDS and Spring-BlazeDS.
In my first android application I would now like to log in to the server and retrieve some data.
I´m wondering how I could achieve this in a secure way. First of all I need to know which technology is the best to retrieve data from the server and how can I restrict the access to users only that have been successfully authenticated.
With what I read until now I would try to implement a HTTPServlet on the server and make server calls via HTTP Client. In the servlet I could probably use the HTTPSession to check if the request comes from an authenticated user. And the data I would try to send serialized (JSON). Unfortunately, I´ve never done those things and maybe I´m on the wrong way and there are more comfortable solutions.
© Stack Overflow or respective owner