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

org.ligoj.app.iam.IPasswordGenerator Maven / Gradle / Ivy

The newest version!
/*
 * Licensed under MIT (https://github.com/ligoj/ligoj/blob/master/LICENSE)
 */
package org.ligoj.app.iam;

/**
 * Password generator extension point.
 */
@FunctionalInterface
public interface IPasswordGenerator {

	/**
	 * Set a generated password to given user. The password may be generated and sent to user and may require additional
	 * steps to be fully available to this user.
	 *
	 * @param user  The user identifier.
	 * @param quiet Flag to turn off the possible notification such as mail.
	 * @return The generated password. never null.
	 */
	String generate(String user, boolean quiet);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy