JBoss Community Archive (Read Only)

GateIn Portal 3.8

Custom password policy

GateIn comes with a set of rules for validating the usernames and passwords, but it might be the case that you want to tweak the password policy to follow your company's policy.

If that's the case, GateIn 3.8.1 and higher allows you to specify the parameters for your own policy. On this release, there's a new "special" policy called "passwordpolicy", which you can specify in your conf/configuration.properties.

gatein.validators.passwordpolicy.format.message=Minimum of 1 digit, 1 lower case, 1 upper case, minimum of 6 chars, max of 20.
gatein.validators.passwordpolicy.regexp=((?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{6,20})
gatein.validators.passwordpolicy.length.max=20
gatein.validators.passwordpolicy.length.min=6

Note, however, that you'll need to restart the server whenever there's a change in the policy.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-10 13:19:55 UTC, last content change 2014-09-03 07:00:23 UTC.