org.ligoj.app.iam.IPasswordGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin-api Show documentation
Show all versions of plugin-api Show documentation
Plugin API definition and compatibility following semver
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);
}