Class 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 com.soffid.iam.service.OTPValidationService, provides access to all services and entities referenced by this service.

    see com.soffid.iam.service.OTPValidationService
    • Constructor Detail

      • OTPValidationServiceBase

        public OTPValidationServiceBase()
    • 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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 current principal if one has been set, otherwise returns null.
        Returns:
        the current principal