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

rodeo.password.pgencheck.RandomUIntGenerator 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;

import java.util.Random;

/**
 * Configuration information for generating random numbers for password creation
 */
public interface RandomUIntGenerator {

    /**
     * Generate a random integer between 0 and max (not included).
     * @param max the upper-bound (not included) of generated integers
     * @return a random integer between 0 and max (not included)
     * @see PasswordMaker.Factory#setRandomUIntGenerator(RandomUIntGenerator)
     */
    int getNextUInt(int max);

    /**
     * Returns a java.util.Random object used to reorder the characters composing a password.
     * @return a java.util.Random object
     * @see PasswordMaker.Factory#setRandomUIntGenerator(RandomUIntGenerator)
     * @see PasswordMaker#create()
     */
    Random random();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy