Password

public class Password

Random password generator. It generates a random passwords of length specified in the constructor, built from letters (lower and upper case) and numbers. It’s used for generating passwords for new users and users that were modified.

Constructors

Password

public Password(Integer length)

Creates a generator that generates passwords of length length.

Parameters:
  • length – the length of the password to generate

Methods

generate

public String generate()

Generates a random password of length specified in the constructor.

Returns:the generated password