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 Principal
getPrincipal()
Gets the currentprincipal
if one has been set, otherwise returnsnull
.protected abstract void
handleRegisterOTPHandler(com.soffid.iam.service.impl.OTPHandler handler)
protected abstract com.soffid.iam.api.Challenge
handleResendToken(com.soffid.iam.api.Challenge challenge, boolean alternativeMethod)
protected abstract boolean
handleResetFailCount(String account)
protected abstract com.soffid.iam.api.Challenge
handleSelectToken(com.soffid.iam.api.Challenge challenge)
protected abstract boolean
handleValidatePin(com.soffid.iam.api.Challenge challenge, String pin)
void
registerOTPHandler(com.soffid.iam.service.impl.OTPHandler handler)
com.soffid.iam.api.Challenge
resendToken(com.soffid.iam.api.Challenge challenge, boolean alternativeMethod)
boolean
resetFailCount(String account)
com.soffid.iam.api.Challenge
selectToken(com.soffid.iam.api.Challenge challenge)
boolean
validatePin(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:
resetFailCount
in 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:
validatePin
in 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:
resendToken
in 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:
selectToken
in 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:
registerOTPHandler
in 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 currentprincipal
if one has been set, otherwise returnsnull
.- Returns:
- the current principal
-
-