Java Training Overview|
This fast-paced course introduces the Java web developer to the Spring Security framework. The first half of the course gives an overview and quickly moves into practical exercises in basic usage: XML configuration for authentication and URL-based authorization. Then we start to dig into Spring Security as a Java model, and develop advanced techniques including custom user realms, custom authorization constraints, method-based authorization, and instance-based authorization.
By the end of the course students will be able to use Spring security to implement authentication and role-based authorization policies for their own Java web applications (whether or not those applications use Spring themselves), and customize the behavior of Spring Security to their requirements.
Note that, in this short time frame, the course does not give much background on general web-application security -- for example, pros and cons of HTTP BASIC, DIGEST, and form-based authentication strategies, or what a session-fixation attack actually is. Rather, it is focused on the Spring Security library and what we can do with it. For a complete treatment of web security, consider pairing this course with Course "Securing Java Web Applications."
Java Training Prerequisites
Java Training Learning Objectives
- Java programming course is excellent preparation.
- Basic knowledge of XML.
- Some servlets and/or JSP experience will be beneficial for purposes of understanding the impact of each security feature that we configure. There is no web-application coding involved in the course.
- Experience with the Spring framework is strongly recommended. This course offers an optional "Chapter 0" briefing on features of Spring that are essential to Spring Security; but full coverage of this chapter will come at the expense of some of the later material in the course.
After completing this course, the student should be able to:
Java Training Course duration
- Configure Spring Security for HTTP BASIC authentication.
- Implement form-based authentication.
- Configure other authentication features including remember-me, anonymous users, and logout.
- Apply authorization constraints to URLs and URL patterns.
- Bind authorization roles to user accounts in relational databases.
- Plug application-specific user realms into Spring Security by implementing UserDetailsService.
- Implement application-specific authorization constraints as AccessDecisionVoters.
- Fix authorization constraints over individual methods of service beans, in lieu of URL authorization or in tandem with it.
Java Training Course outline
Chapter 0. The Spring Framework
Chapter 1. Spring Security
- Overview of Spring
- The Core Module
- Inversion of Control
- XML and Java Views of the Container
- Configuring JavaBeans
- Dependency Injection
- Web Application Contexts
Chapter 2. Authentication
- Acquiring and Integrating Spring Security
- Relationship to Spring
- Relationship to Java EE Standards
- Basic Configuration
- How It Works
- Integration: LDAP, CAS, X.509, OpeID, etc.
- Integration: JAAS
Chapter 3. URL Authorization
- The <http> Configuration
- The <intercept-url> Constraint
- The <form-login> Configuration
- Login Form Design
- "Remember Me"
- Anonymous "Authentication"
- The JDBC Authentication Provider
- The Authentication/Authorization Schema
- Using Hashed Passwords
- Channel Security
- Session Management
Chapter 4. Under the Hood: Authentication
- URL Authorization
- Programmatic Authorization: Servlets
- Programmatic Authorization: Spring Security
- Role-Based Presentation
- The Spring Security Tag Library
Chapter 5. Under the Hood: Authorization
- The Spring Security API
- The Filter Chain
- Authentication Manager and Providers
- The Security Context
- Plug-In Points
- Implementing UserDetailsService
- Connecting User Details to the Domain Model
Chapter 6. URL Authorization
- FilterSecurityInterceptor and Friends
- The AccessDecisionManager
- Configuration Attributes
- Access-Decision Strategies
- Implementing AccessDecisionVoter
- The Role Prefix
- Method Authorization
- Using Spring AOP
- XML vs. Annotations
- Domain-Object Authorization
- The ACL Schema
- Interface Model
- ACL-Based Presentation
Minimum Hardware Requirements
Minimum Software Requirements
- Core 2 Duo 1.5 GHz or equivalent, 1 gig RAM, 2 gig disk space
Hardware – recommended
- All free downloadable tools.
Network and Security
- Core 2 Duo 2.5 GHz or equivalent, 4 gig RAM, 2 gig disk space.
- Limited privileges required
- Tested on Windows XP Professional. Course software should be viable on all systems which support a Java 6 Developer's Kit.