mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-17 01:31:01 +00:00
Added documentation to AuthenticationManagerImpl constructors
This commit is contained in:
1 parent
161ad5884e
commit
92712cff89
1 file changed
+26
+26
@@ -19,12 +19,38 @@ public class AuthenticationManagerImpl implements AuthenticationManager {
|
||||
private final String emailConfirmationUrl;
|
||||
private final String passwordResetUrl;
|
||||
|
||||
/**
|
||||
* Creates an {@link AuthenticationManagerImpl} instance based on the {@link UserService} and
|
||||
* {@link UserManagementServiceAsync} instances provided by the given {@link WithSecurity} instance.
|
||||
*
|
||||
* @param userService
|
||||
* the {@link UserService} instance to use
|
||||
* @param eventBus
|
||||
* the {@link EventBus} instance
|
||||
* @param emailConfirmationUrl
|
||||
* URL with is send to users to verify their email address
|
||||
* @param passwordResetUrl
|
||||
* URL with is send to users to reset their password
|
||||
*/
|
||||
public AuthenticationManagerImpl(WithSecurity clientFactory, EventBus eventBus,
|
||||
String emailConfirmationUrl, String passwordResetUrl) {
|
||||
this(clientFactory.getUserManagementService(), clientFactory.getUserService(), eventBus, emailConfirmationUrl,
|
||||
passwordResetUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an {@link AuthenticationManagerImpl} instance based on the given {@link UserService} and its underlying
|
||||
* {@link UserManagementServiceAsync} instance.
|
||||
*
|
||||
* @param userService
|
||||
* the {@link UserService} instance to use
|
||||
* @param eventBus
|
||||
* the {@link EventBus} instance
|
||||
* @param emailConfirmationUrl
|
||||
* URL with is send to users to verify their email address
|
||||
* @param passwordResetUrl
|
||||
* URL with is send to users to reset their password
|
||||
*/
|
||||
public AuthenticationManagerImpl(UserService userService, EventBus eventBus, String emailConfirmationUrl,
|
||||
String passwordResetUrl) {
|
||||
this(userService.getUserManagementService(), userService, eventBus, emailConfirmationUrl, passwordResetUrl);
|
||||
|
||||
Reference in new issue
Block a user