Package org.ametys.web.authentication
Class MultifactorAuthenticationManager
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.core.authentication.MultifactorAuthenticationManager
org.ametys.web.authentication.MultifactorAuthenticationManager
- All Implemented Interfaces:
LogEnabled,Disposable,Initializable,Component,Contextualizable,Serviceable
The component to handle Multifactor authentication
Provides methods to generate, send and check MFA codes
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.plugins.core.authentication.MultifactorAuthenticationManager
MultifactorAuthenticationManager.MultifactorAuthenticationCode -
Field Summary
FieldsFields inherited from class org.ametys.plugins.core.authentication.MultifactorAuthenticationManager
_context, _cryptoHelpers, _currentUserProvider, _i18nUtils, _serviceManager, _sqlDatabaseTypeExtensionPoint, _userLanguagesManager, _userManager, ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected I18nizableText_getMailSubjectPrefix(Request request) Retrieves the prefix of mail's subjectvoidservice(ServiceManager manager) Methods inherited from class org.ametys.plugins.core.authentication.MultifactorAuthenticationManager
authenticationApplicationForCurrentUser, contextualize, dispose, generateMultifactorAuthenticationCode, getCurrentUserQrData, getDatasourceId, getEmailCodeDuration, getSQLTableName, getUserSecretForCurrentUser, initialize, initializeMFACryptoComponent, isAuthenticationApplicationActivated, isValidMultifactorAuthenticationCode, renewSecret, renewSecretForCurrentUser, sendMultifactorAuthenticationCodeByMailMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_siteManager
The site manager
-
-
Constructor Details
-
MultifactorAuthenticationManager
public MultifactorAuthenticationManager()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classMultifactorAuthenticationManager- Throws:
ServiceException
-
_getMailSubjectPrefix
Description copied from class:MultifactorAuthenticationManagerRetrieves the prefix of mail's subject- Overrides:
_getMailSubjectPrefixin classMultifactorAuthenticationManager- Parameters:
request- the request- Returns:
- the prefix of mail's subject
-