Class TwoFactorConfigurationServiceImpl
java.lang.Object
org.apache.fineract.infrastructure.security.service.TwoFactorConfigurationServiceImpl
- All Implemented Interfaces:
TwoFactorConfigurationService
@Service
@ConditionalOnProperty("fineract.security.2fa.enabled")
public class TwoFactorConfigurationServiceImpl
extends Object
implements TwoFactorConfigurationService
-
Constructor Summary
ConstructorsConstructorDescriptionTwoFactorConfigurationServiceImpl(TwoFactorConfigurationRepository configurationRepository) -
Method Summary
Modifier and TypeMethodDescriptiongetFormattedEmailBodyFor(org.apache.fineract.useradministration.domain.AppUser user, OTPRequest request) getFormattedEmailSubjectFor(org.apache.fineract.useradministration.domain.AppUser user, OTPRequest request) getFormattedSmsTextFor(org.apache.fineract.useradministration.domain.AppUser user, OTPRequest request) booleanbooleanupdate(org.apache.fineract.infrastructure.core.api.JsonCommand command)
-
Constructor Details
-
TwoFactorConfigurationServiceImpl
@Autowired public TwoFactorConfigurationServiceImpl(TwoFactorConfigurationRepository configurationRepository)
-
-
Method Details
-
retrieveAll
@Cacheable(value="tfConfig", key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier()") public Map<String,Object> retrieveAll()- Specified by:
retrieveAllin interfaceTwoFactorConfigurationService
-
update
@CacheEvict(value="tfConfig", allEntries=true) public Map<String,Object> update(org.apache.fineract.infrastructure.core.api.JsonCommand command) - Specified by:
updatein interfaceTwoFactorConfigurationService
-
isSMSEnabled
@Cacheable(value="tfConfig", key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier()+\'|smsEnabled\'") public boolean isSMSEnabled()- Specified by:
isSMSEnabledin interfaceTwoFactorConfigurationService
-
getSMSProviderId
@Cacheable(value="tfConfig", key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier()+\'|smsProvider\'") public Integer getSMSProviderId()- Specified by:
getSMSProviderIdin interfaceTwoFactorConfigurationService
-
getSmsText
@Cacheable(value="tfConfig", key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier()+\'|smsText\'") public String getSmsText()- Specified by:
getSmsTextin interfaceTwoFactorConfigurationService
-
isEmailEnabled
@Cacheable(value="tfConfig", key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier()+\'|emailEnabled\'") public boolean isEmailEnabled()- Specified by:
isEmailEnabledin interfaceTwoFactorConfigurationService
-
getEmailSubject
@Cacheable(value="tfConfig", key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier()+\'|emailSubject\'") public String getEmailSubject()- Specified by:
getEmailSubjectin interfaceTwoFactorConfigurationService
-
getEmailBody
@Cacheable(value="tfConfig", key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier()+\'|emailBody\'") public String getEmailBody()- Specified by:
getEmailBodyin interfaceTwoFactorConfigurationService
-
getFormattedEmailSubjectFor
public String getFormattedEmailSubjectFor(org.apache.fineract.useradministration.domain.AppUser user, OTPRequest request) - Specified by:
getFormattedEmailSubjectForin interfaceTwoFactorConfigurationService
-
getFormattedEmailBodyFor
public String getFormattedEmailBodyFor(org.apache.fineract.useradministration.domain.AppUser user, OTPRequest request) - Specified by:
getFormattedEmailBodyForin interfaceTwoFactorConfigurationService
-
getFormattedSmsTextFor
public String getFormattedSmsTextFor(org.apache.fineract.useradministration.domain.AppUser user, OTPRequest request) - Specified by:
getFormattedSmsTextForin interfaceTwoFactorConfigurationService
-
getOTPTokenLength
@Cacheable(value="tfConfig", key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier()+\'|otpLength\'") public Integer getOTPTokenLength()- Specified by:
getOTPTokenLengthin interfaceTwoFactorConfigurationService
-
getOTPTokenLiveTime
@Cacheable(value="tfConfig", key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier()+\'|otpTime\'") public Integer getOTPTokenLiveTime()- Specified by:
getOTPTokenLiveTimein interfaceTwoFactorConfigurationService
-
getAccessTokenLiveTime
@Cacheable(value="tfConfig", key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier()+\'|tokenTime\'") public Integer getAccessTokenLiveTime()- Specified by:
getAccessTokenLiveTimein interfaceTwoFactorConfigurationService
-
getAccessTokenExtendedLiveTime
@Cacheable(value="tfConfig", key="T(org.apache.fineract.infrastructure.core.service.ThreadLocalContextUtil).getTenant().getTenantIdentifier()+\'|tokenExtendedTime\'") public Integer getAccessTokenExtendedLiveTime()- Specified by:
getAccessTokenExtendedLiveTimein interfaceTwoFactorConfigurationService
-