Package com.soffid.iam.service
Class OTPValidationServiceBase
- java.lang.Object
-
- com.soffid.iam.service.OTPValidationServiceBase
-
- All Implemented Interfaces:
com.soffid.iam.service.OTPValidationService
- Direct Known Subclasses:
OTPValidationServiceImpl
public abstract class OTPValidationServiceBase extends Object implements com.soffid.iam.service.OTPValidationService
Spring Service base class for
see com.soffid.iam.service.OTPValidationServicecom.soffid.iam.service.OTPValidationService, provides access to all services and entities referenced by this service.
-
-
Constructor Summary
Constructors Constructor Description OTPValidationServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected PrincipalgetPrincipal()Gets the currentprincipalif one has been set, otherwise returnsnull.protected abstract voidhandleRegisterOTPHandler(com.soffid.iam.service.impl.OTPHandler handler)protected abstract com.soffid.iam.api.ChallengehandleResendToken(com.soffid.iam.api.Challenge challenge, boolean alternativeMethod)protected abstract booleanhandleResetFailCount(String account)protected abstract com.soffid.iam.api.ChallengehandleSelectToken(com.soffid.iam.api.Challenge challenge)protected abstract booleanhandleValidatePin(com.soffid.iam.api.Challenge challenge, String pin)voidregisterOTPHandler(com.soffid.iam.service.impl.OTPHandler handler)com.soffid.iam.api.ChallengeresendToken(com.soffid.iam.api.Challenge challenge, boolean alternativeMethod)booleanresetFailCount(String account)com.soffid.iam.api.ChallengeselectToken(com.soffid.iam.api.Challenge challenge)booleanvalidatePin(com.soffid.iam.api.Challenge challenge, String pin)
-
-
-
Method Detail
-
resetFailCount
@Transactional(rollbackFor=java.lang.Exception.class) public boolean resetFailCount(String account) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
resetFailCountin interfacecom.soffid.iam.service.OTPValidationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleResetFailCount
protected abstract boolean handleResetFailCount(String account) throws Exception
- Throws:
Exception
-
validatePin
@Transactional(rollbackFor=java.lang.Exception.class) public boolean validatePin(com.soffid.iam.api.Challenge challenge, String pin) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
validatePinin interfacecom.soffid.iam.service.OTPValidationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleValidatePin
protected abstract boolean handleValidatePin(com.soffid.iam.api.Challenge challenge, String pin) throws Exception- Throws:
Exception
-
resendToken
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Challenge resendToken(com.soffid.iam.api.Challenge challenge, boolean alternativeMethod) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
resendTokenin interfacecom.soffid.iam.service.OTPValidationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleResendToken
protected abstract com.soffid.iam.api.Challenge handleResendToken(com.soffid.iam.api.Challenge challenge, boolean alternativeMethod) throws Exception- Throws:
Exception
-
selectToken
@Transactional(rollbackFor=java.lang.Exception.class) public com.soffid.iam.api.Challenge selectToken(com.soffid.iam.api.Challenge challenge) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
selectTokenin interfacecom.soffid.iam.service.OTPValidationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleSelectToken
protected abstract com.soffid.iam.api.Challenge handleSelectToken(com.soffid.iam.api.Challenge challenge) throws Exception- Throws:
Exception
-
registerOTPHandler
@Transactional(rollbackFor=java.lang.Exception.class) public void registerOTPHandler(com.soffid.iam.service.impl.OTPHandler handler) throws es.caib.seycon.ng.exception.InternalErrorException
- Specified by:
registerOTPHandlerin interfacecom.soffid.iam.service.OTPValidationService- Throws:
es.caib.seycon.ng.exception.InternalErrorException
-
handleRegisterOTPHandler
protected abstract void handleRegisterOTPHandler(com.soffid.iam.service.impl.OTPHandler handler) throws Exception- Throws:
Exception
-
getPrincipal
protected Principal getPrincipal()
Gets the currentprincipalif one has been set, otherwise returnsnull.- Returns:
- the current principal
-
-