All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rodeo.password.pgencheck.CharacterGroups Maven / Gradle / Ivy

Go to download

This project provides classes to create and validate passwords. A number of criteria can be provided (minimum and maximum length, presence of certain character types, etc.) to validate and create passwords. Any Unicode character can be used in the generation and validation of passwords.

The newest version!
package rodeo.password.pgencheck;

/**
 * Contains a few standard character groups
 */
public final class CharacterGroups {

    /**
     * Lower-case characters: abcdefghijklmnopqrstuvwxyz
     */
    public static final String LOWER_CASE = "abcdefghijklmnopqrstuvwxyz";
    /**
     * Upper-case characters: ABCDEFGHIJKLMNOPQRSTUVWXYZ
     */
    public static final String UPPER_CASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    /**
     * Digits: 0123456789
     */
    public static final String DIGITS = "0123456789";
    /**
     * Symbols accessible on most keyboard layout: !@#$%&*-_=+|?{}[]()/'",.;:<>
     */
    public static final String SYMBOLS = "!@#$%&*-_=+|?{}[]()/'\",.;:<>";

    /**
     * Lower-case characters that cannot be mistaken for other symbols: abcdefghijkmnpqrstuvwxyz
     */
    public static final String UNAMBIGUOUS_LOWER_CASE = "abcdefghijkmnpqrstuvwxyz";
    /**
     * Upper-case characters that cannot be mistaken for other symbols: ACDEFGHJKLMNPQRSTUVWXYZ
     */
    public static final String UNAMBIGUOUS_UPPER_CASE = "ACDEFGHJKLMNPQRSTUVWXYZ";
    /**
     * Digit characters that cannot be mistaken for other symbols: 2345679
     */
    public static final String UNAMBIGUOUS_DIGITS = "2345679";
    /**
     * Symbol characters that cannot be mistaken for other symbols: !@#$%&*-_=+|
     */
    public static final String UNAMBIGUOUS_SYMBOLS = "!@#$%&*-_=+|?";

    private CharacterGroups() {
        throw new UnsupportedOperationException();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy