O'Reilly logo

Android Application Security Essentials by Pragati Ogal Rai

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Account manager

In the context of storing sensitive data, storing passwords or authentication tokens is an important aspect. Consider applications such as Google Mail, Twitter, and Facebook, which lets users log in. Other applications work with an authentication token as used by identity protocols such as OAuth2.

Android provides the android.accounts.AccountManager class as a centralized repository for storing user credentials. An application can choose to use its own pluggable authenticator to handle account authentication. From storing the username to identity information to creating your custom account manager, Android's AccountManager is a powerful utility.


The AccountManager class functions are permissions protected so that your application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required