Passay is a Java based Password generation and validation library. It provides comprehensive features list in order to validate/generate passwords and is highly configurable.
Passay API has 3 core components.
Rule − one or more rules which define a password policy rule set.
PasswordValidator − A validator component which validates a password against a given rule set.
PasswordGenerator − A generator component which produces passwords to satisfy a given rule set.
Rules are the foundation blocks for both password validation and generation. There are two broad categories of rules:
Positive match require that passwords satisfy a rule.
Negative match reject passwords that satisfy a rule.
Following are some of the features that Passay library provides.
Password Validation − Passay library helps in enforcing a password policy by validating passwords against a configurable rule set. It has a rich set of existing rules for common use-cases. For additional cases, it provides a simple Rule interface to implement the custom rule.
Password Generation − It provides a configurable rule set which can be used to generate passwords as well.
Command Line Tools − It provides tools to automate password policy enforcement.
convenient − Easy to use.
Extensible − All Passay components are extensible.
Supports Internalization - Passay components are internationalization ready.