rodeo.password.pgencheck.RandomUIntGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of password-rodeo Show documentation
Show all versions of password-rodeo Show documentation
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();
}