Tag Archives: security
Fixing PKIX path building issues when using JavaMail and SMTP
I’m writing this post in support of chapter 8 in my book Spring in Practice, which deals with Spring/JavaMail integration, since it’s not always straightforward to configure an app to use SMTP. The problem Suppose that you’ve configured your JavaMail … Continue reading
Spring Security 3 database schemas for MySQL
In preparation for a DZone Refcard on Spring Security 3 I’m doing, here are the Spring Security database schemas for MySQL. This isn’t intended to be an exhaustive treatment. Rather it’s more a reference for the MySQL dialect version of … Continue reading
Hashing and salting passwords with Spring Security 2
This post was originally written as a recipe for our book Spring in Practice, but we just didn’t have enough room to include it. It’s still (we think, anyway) a great recipe, so we’re making it available here free of … Continue reading
Excerpt: Login and remember-me discussion
Spring in Practice centers on using Spring to implement technical solutions to common problems, but it’s also important for developers to understand the problem they’re trying to solve before implementing a solution. In the book we work pretty hard to … Continue reading
Storing passwords securely
When dealing with user account information, there are lots of different security concerns that come up. Some examples include making sure users use strong passwords, preventing automated registrations, helping end users distinguish real sites from phishing sites, transmitting user data … Continue reading
Setting up public key authentication (PKA) over SSH
I assume you already know the whys, concepts, and terminology; this is just a statement of the steps involved. I’m using OpenSSH and a DSA key pair. Step 1 Generate a key pair: ssh-keygen -t dsa Generating public/private dsa key … Continue reading
How to reCAPTCHA your Java application
reCAPTCHA is a novel CAPTCHA system developed by the School of Computer Science at my alma mater, Carnegie Mellon University. I won’t explain its coolness here since they do a good job of explaining that coolness themselves. What I will … Continue reading
Acegi overview (now Spring Security)
I wrote this back when Spring Security was called Acegi. Now it’s out of date, but I’m leaving it in the archive. Acegi has been around for a while, but I just recently tried it out and am impressed with … Continue reading
