Security is surely one of the hottest topics of all time in the software industry, and there's no reason for that to change any time soon. Actually, it will probably become even hotter as time goes on.
With all your data being streamed through the cloud, passing through uncountable servers, links, databases, sessions, devices, and so on, what you would expect, at least, is that it is well-protected, secured, and that its integrity is kept.
Now, finally, Java EE has its own Security API, with Soteria being its reference implementation.
Security is a subject worthy of dozens of books; that's a fact. But this chapter will cover some common use cases that you may come across in your daily projects.