CARVIEW |
GlassFish Security
Formats:

save 15%!
save 44%!

Also available on: |
![]() ![]() ![]() ![]() |
- Secure your GlassFish installation and J2EE applications
- Develop secure Java EE applications including Web, EJB, and Application Client modules
- Secure web services using GlassFish and OpenSSO web service security features
- Support SSL in GlassFish including Mutual Authentication and Certificate Realm with this practical guide
Book Details
Language : EnglishPaperback : 296 pages [ 235mm x 191mm ]
Release Date : May 2010
ISBN : 1847199380
ISBN 13 : 9781847199386
Author(s) : Masoud Kalali
Topics and Technologies : All Books, Security and Testing, Java, Open Source, Web Services
Table of Contents
Preface
Chapter 1: Java EE Security Model
Chapter 2: GlassFish Security Realms
Chapter 3: Designing and Developing Secure Java EE Applications
Chapter 4: Securing GlassFish Environment
Chapter 5: Securing GlassFish
Chapter 6: Introducing OpenDS: Open Source Directory Service
Chapter 7: OpenSSO, the Single sign-on Solution
Chapter 8: Securing Java EE Applications using OpenSSO
Chapter 9: Securing Web Services by OpenSSO
Index
Masoud Kalali
Masoud Kalali has a software engineering degree and has been working on software development projects since 1998. He has experience with a variety of technologies (.NET, J2EE, CORBA, and COM+) on diverse platforms (Solaris, Linux, and Windows). His experience is in software architecture, design, and server-side development.
Masoud has published several articles at Java.net and Dzone. He has authored multiple refcards, published by Dzone, including Using XML in Java, Java EE Security and GlassFish v3 refcards. He is one of founder members of NetBeans Dream Team and a GlassFish community spotlighted developer.
Masoud's main area of research and interest includes service-oriented architecture and large scale systems' development and deployment and in his leisure time he enjoys photography, mountaineering and camping.
Masoud blog on Java EE, Software Architecture and Security at his java.net blog and you can follow him at his twitter account
Masoud can be reached via Kalali@gmail.com in case you had some queries about the book or if you just felt like talking to him about software engineering.
Sample chapters
You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.
Code Downloads
Download the code and support files for this book.
Errata
- 5 submitted: last submission 09 Aug 2012Errata type: Graphics | Page number: 52 | Errata date: 02/02/2012
In the additional properties table, the entry for Digest Algorithm should be the word none instead of being empty.
Errata type: Code | Page number: 50 | Errata date:
insert into groups values('jack',manager);
should be
insert into groups values('jack','manager');
Errata type: Code | Page number: 237 | Errata date: 06/29/2010
Method(operationName = "stringEcho")
should be
Method(operationName = "@WebMethod")
Errata type: Typo | Page number: 22 | Errata date: 07/03/2010
Here is a example snippet to add encryption support for a set of resources:
should be
Here is an example snippet to add encryption support for a set of resources:
Errata type: Technical | Page number: 104 | Errata date: 13 July 10
Install GlassFish in/opt/app-server and revoke all access permissions to this directory from groups who we do not want to allow to access the resource.
should be
Install GlassFish in /opt/app-server and revoke all access permissions to this directory from groups who we do not want to allow to access the resource.
Submit Errata
Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.
What you will learn from this book
- Develop secure Java EE applications including Web, EJB, and Application client modules.
- Reuse the security assets you have by learning GlassFish security realms in great details along with the sample for each realm.
- Secure GlassFish installation including operating system security and JVM policy configuration.
- Secure Java EE applications using OpenSSO and set up Single Sign-On (SSO) between multiple applications.
- Secure web services using Java EE built-in features, OpenSSO and WS-Security.
- Secure network listeners and passwords using GlassFish provided facilities.
- Learn using OpenSSO services, SDKs, and agents to secure Java EE enterprise applications including Web Services.
- Learn using OpenDS both as administrator and as an LDAP solution developer.
- All command lines and more than 90% of the book content applies for both GlassFish 3.x and 2.x.
Special Offers

Annual subscription:
$220.00 per annum
Monthly subscription:
$21.99 per month
In Detail
Security was, is, and will be one of the most important aspects of Enterprise Applications and one of the most challenging areas for architects, developers, and administrators. It is mandatory for Java EE application developers to secure their enterprise applications using Glassfish security features.
Learn to secure Java EE artifacts (like Servlets and EJB methods), configure and use GlassFish JAAS modules, and establish environment and network security using this practical guide filled with examples. One of the things you will love about this book is that it covers the advantages of protecting application servers and web service providers using OpenSSO.
The book starts by introducing Java EE security in Web, EJB, and Application Client modules. Then it introduces the Security Realms provided in GlassFish, which developers and administrators can use to complete the authentication and authorization setup. In the next step, we develop a completely secure Java EE application with Web, EJB, and Application Client modules.
The next part includes a detailed and practical guide to setting up, configuring, and extending GlassFish security. This part covers everything an administrator needs to know about GlassFish security, starting from installation and operating environment security, listeners and password security, through policy enforcement, to auditing and developing new auditing modules.
Before starting the third major part of the book, we have a chapter on OpenDS discussing how to install, and administrate OpenDS. The chapter covers importing and exporting data, setting up replications, backup and recovery and finally developing LDAP based solutions using OpenDS and Java.
Finally the third part starts by introducing OpenSSO and continues with guiding you through OpenSSO features, installation, configuration and how you can use it to secure Java EE applications in general and web services in particular. Identity Federation and SSO are discussed in the last chapter of the book along with a working sample.
Inspired from real development cases, this practical guide shows you how to secure a GlassFish installation and how to develop applications with secure authentication based on GlassFish, Java EE, and OpenSSO capabilities.
Approach
Security is driven by requirement and design and we implement security on the basis of the requirements provided by analysts. In this book, we take a programmatic approach to understand Java EE and GlassFish security.
You will find plenty of code samples in this book. It is easy to secure your application when you have a demonstration of a complete and working application explained in the book, isn't it? Each chapter starts with the importance and relevance of the topic by introducing some Java EE applications requirement, which will encourage you to read it further.
Who this book is for
This book is for application designers, developers and administrators who work with GlassFish and are keen to understand Java EE and GlassFish security.
To take full advantage of this book, you need to be familiar with Java EE and GlassFish application servers. You will love this book if you are looking for a book that covers Java EE security and using GlassFish features to create secure Java EE applications, or to secure the GlassFish installation and operating environment and using OpenSSO.
Alternative Books
Have a look at these alternative products. Remember that if you buy two eBooks, you get 50% off both.
-
- Get GlassFish installed and configured ready for use
- Integrate GlassFish with popular Open Source products such as Open MQ, Open DS, and Apache Active MQ, and get them working together in a loosely-coupled manner
- Configure resource types like JDBC, Java Connector Architecture (JCA), JavaMail Sessions, and Custom JNDI supported in GlassFish to simplify resource access and integration
- Secure, monitor, troubleshoot, and tune your application server instance
-
- Install and configure the GlassFish 3 Application Server and develop Java EE 6 applications to be deployed to this server
- Specialize in all major Java EE 6 APIs, including new additions to the specification such as CDI and JAX-RS
- Use GlassFish v3 application server and gain enterprise reliability and performance with less complexity
- Clear, step-by-step instructions, practical examples, and straightforward explanations
-
- Discover JSF 2.0 features through complete examples
- Put in action important JSF frameworks, such as Apache MyFaces Core, Trinidad, Tomahawk, RichFaces Core, Sandbox and so on
- Develop JSF projects under NetBeans/Glassfish v3 Prelude and Eclipse/JBoss AS
- Part of Packt's Cookbook series: Each recipe is a carefully organized sequence of instructions to complete the task as efficiently as possible
-
- Create large, scalable, modular Swing applications from scratch
- Master a broad range of topics essential to have in your desktop application development toolkit, right from conceptualization to distribution
- Pursue an easy-to-follow sequential and tutorial approach that builds to a complete Swing application
- English translation by leaders of the NetBeans community of a Germany Developer's Notebook on the NetBeans platform
-
- Make your web applications impenetrable.
- Implement authentication and authorization of users.
- Integrate Spring Security 3 with common external security providers.
- Packed full with concrete, simple, and concise examples.
-
New jQuery Book Released jQuery Tools UI Library will show you how to add useful functionality to your website, using the compact but powerful jQuery Tools library.Get inspiration for developing your own ideas with the book.
Learn More Download a free chapter - Organize your interfaces with reusable widgets: accordions, date pickers, dialogs, sliders, tabs, and more
- Enhance the interactivity of your pages by making elements drag-and-droppable, sortable, selectable, and resizable
- Packed with examples and clear explanations of how to easily design elegant and powerful front-end interfaces for your web applications
- Revised and targeted at jQuery UI 1.7
-
- Set up MySQL to perform administrative tasks such as efficiently managing data and database schema, improving the performance of MySQL servers, and managing user credentials
- Deal with typical performance bottlenecks and lock-contention problems
- Restrict access sensibly and regain access to your database in case of loss of administrative user credentials
- Part of Packt's Cookbook series: Each recipe is a carefully organized sequence of instructions to complete the task as efficiently as possible
-
New jQuery Book Released jQuery Tools UI Library will show you how to add useful functionality to your website, using the compact but powerful jQuery Tools library.Get inspiration for developing your own ideas with the book.
Learn More Download a free chapter - Quickly look up features of the jQuery library
- Step through each function, method, and selector expression in the jQuery library with an easy-to-follow approach
- Understand the anatomy of a jQuery script
- Write your own plug-ins using jQuery's powerful plug-in architecture
- Written by the creators of learningquery.com
- Check out the new Learning jQuery Third Edition here
-
- Concise guide covering all major aspects of Java EE 5 development
- Uses the enterprise open-source GlassFish application server
- Explains GlassFish installation and configuration
- Covers all major Java EE 5 APIs
![]() |
RSS Feed |
![]() |
Sign up to Packt's newsletter |
![]() |
Follow Packt at Twitter |
![]() |
Join our Facebook Group |
Customer service body text... insert content here.
Returns Centre body text... insert content here.
Packt Updates
To submit your images Click Here
Click here to view Packt's cookie policy. This explains the cookies on Packt's website, and why we use them. It also explains information on how to manage your cookies.
By closing this banner, you are consenting to our use of cookies on your device, unless you have disabled them in your browser.