Chapter 13. Java Security

Security becomes ever more important as people flock to the Web and a large number of sites (such as Amazon and online banks) store personal information about their customers, not to mention a wide variety of uses in custom enterprise solutions with multiple users. Java provides security in two major ways. Java Cryptography provides user identification/authentication and signing of digital messages. Java Authentication and Authorization Services provides programmatic access control and user authorization, granting access to various program features based on permissions and security policies. This chapter gives you a solid foundation in these APIs and shows you how to utilize them effectively. Additionally, the new digital signing of XML documents, introduced in JDK 6, is discussed.

The Java implementation of security addresses many standard facets of security such as access control, public/private key generation and management, signing of digital content, and management of digital certificates. This chapter looks at what Java provides in its various security packages and delves into the concepts of security.

Java Cryptography Architecture and Java Cryptography Extension (JCA/JCE)

The Java Cryptography Architecture (JCA) was first introduced in JDK 1.1. Since its initial release, the JCA went from providing APIs for digital signatures and message digests to including certificate management and fine-grained configurable access control. The other important features ...

Get Professional Java® JDK®, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.