Use Jersey for REST. Token based authentication prototype(Spring Security).