This chapter will cover the modules and features that support Spring for Android and use REST in Android as a client. There are some modules that help request and retrieve REST APIs. They also provide security, such as basic authentication and OAuth2. Because of these securities, the resources of the server are secured and are therefore difficult to hack. Even a client needs to be granted permission from the owner to use the resources from the protected server. The modules also incorporate a strong OAuth-based authorization client and implementations for mainstream social websites, such as Google, Twitter, Facebook, and so on.
This chapter covers the following topics:
- The RestTemplate module.
- The Gradle and Maven repository
- RestTemplate module
- Retrofit
- Creating an Android app