Class PasswordServiceBase

  • All Implemented Interfaces:
    com.soffid.iam.service.PasswordService
    Direct Known Subclasses:
    PasswordServiceImpl

    public abstract class PasswordServiceBase
    extends Object
    implements com.soffid.iam.service.PasswordService

    Spring Service base class for com.soffid.iam.service.PasswordService, provides access to all services and entities referenced by this service.

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

      • PasswordServiceBase

        public PasswordServiceBase()
    • Method Detail

      • setAccountEntityDao

        public void setAccountEntityDao​(AccountEntityDao accountEntityDao)
        Sets reference to accountEntityDao.
      • getAccountEntityDao

        public AccountEntityDao getAccountEntityDao()
        Gets reference to accountEntityDao.
      • setAuditEntityDao

        public void setAuditEntityDao​(AuditEntityDao auditoriaEntityDao)
        Sets reference to auditoriaEntityDao.
      • getAuditEntityDao

        public AuditEntityDao getAuditEntityDao()
        Gets reference to auditoriaEntityDao.
      • setConfigurationService

        public void setConfigurationService​(com.soffid.iam.service.ConfigurationService configuracioService)
        Sets reference to configuracioService.
      • getConfigurationService

        public com.soffid.iam.service.ConfigurationService getConfigurationService()
        Gets reference to configuracioService.
      • setSystemEntityDao

        public void setSystemEntityDao​(SystemEntityDao dispatcherEntityDao)
        Sets reference to dispatcherEntityDao.
      • getSystemEntityDao

        public SystemEntityDao getSystemEntityDao()
        Gets reference to dispatcherEntityDao.
      • setPasswordDomainEntityDao

        public void setPasswordDomainEntityDao​(PasswordDomainEntityDao dominiContrasenyaEntityDao)
        Sets reference to dominiContrasenyaEntityDao.
      • getPasswordDomainEntityDao

        public PasswordDomainEntityDao getPasswordDomainEntityDao()
        Gets reference to dominiContrasenyaEntityDao.
      • setInternalPasswordService

        public void setInternalPasswordService​(InternalPasswordService internalPasswordService)
        Sets reference to internalPasswordService.
      • getInternalPasswordService

        public InternalPasswordService getInternalPasswordService()
        Gets reference to internalPasswordService.
      • setPasswordPolicyEntityDao

        public void setPasswordPolicyEntityDao​(PasswordPolicyEntityDao politicaContrasenyaEntityDao)
        Sets reference to politicaContrasenyaEntityDao.
      • getPasswordPolicyEntityDao

        public PasswordPolicyEntityDao getPasswordPolicyEntityDao()
        Gets reference to politicaContrasenyaEntityDao.
      • setUserEntityDao

        public void setUserEntityDao​(UserEntityDao usuariEntityDao)
        Sets reference to usuariEntityDao.
      • getUserEntityDao

        public UserEntityDao getUserEntityDao()
        Gets reference to usuariEntityDao.
      • checkPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public boolean checkPassword​(String account,
                                     String dispatcher,
                                     com.soffid.iam.api.Password password,
                                     boolean checkTrusted,
                                     boolean checkExpired)
                              throws es.caib.seycon.ng.exception.InternalErrorException,
                                     es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        checkPassword in interface com.soffid.iam.service.PasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCheckPassword

        protected abstract boolean handleCheckPassword​(String account,
                                                       String dispatcher,
                                                       com.soffid.iam.api.Password password,
                                                       boolean checkTrusted,
                                                       boolean checkExpired)
                                                throws Exception
        Throws:
        Exception
      • checkExpiredPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public boolean checkExpiredPassword​(String accoount,
                                            String dispatcher)
                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        checkExpiredPassword in interface com.soffid.iam.service.PasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCheckExpiredPassword

        protected abstract boolean handleCheckExpiredPassword​(String accoount,
                                                              String dispatcher)
                                                       throws Exception
        Throws:
        Exception
      • checkPin

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public boolean checkPin​(String user,
                                String pin)
                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        checkPin in interface com.soffid.iam.service.PasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • checkPolicy

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PolicyCheckResult checkPolicy​(String account,
                                                                String dispatcher,
                                                                com.soffid.iam.api.Password password)
                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        checkPolicy in interface com.soffid.iam.service.PasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCheckPolicy

        protected abstract com.soffid.iam.api.PolicyCheckResult handleCheckPolicy​(String account,
                                                                                  String dispatcher,
                                                                                  com.soffid.iam.api.Password password)
                                                                           throws Exception
        Throws:
        Exception
      • getDefaultDispatcher

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public String getDefaultDispatcher()
                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getDefaultDispatcher in interface com.soffid.iam.service.PasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetDefaultDispatcher

        protected abstract String handleGetDefaultDispatcher()
                                                      throws Exception
        Throws:
        Exception
      • getPolicyDescription

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public String getPolicyDescription​(String account,
                                           String dispatcher)
                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                           es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getPolicyDescription in interface com.soffid.iam.service.PasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • getPasswordExpiredDate

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Calendar getPasswordExpiredDate​(String account,
                                               String dispatcher)
                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                               es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        getPasswordExpiredDate in interface com.soffid.iam.service.PasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • changePassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void changePassword​(String account,
                                   String dispatcher,
                                   com.soffid.iam.api.Password oldPassword,
                                   com.soffid.iam.api.Password newPassword)
                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                   es.caib.seycon.ng.exception.InternalErrorException,
                                   es.caib.seycon.ng.exception.BadPasswordException,
                                   es.caib.seycon.ng.exception.InvalidPasswordException
        Specified by:
        changePassword in interface com.soffid.iam.service.PasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.BadPasswordException
        es.caib.seycon.ng.exception.InvalidPasswordException
      • handleChangePassword

        protected abstract void handleChangePassword​(String account,
                                                     String dispatcher,
                                                     com.soffid.iam.api.Password oldPassword,
                                                     com.soffid.iam.api.Password newPassword)
                                              throws Exception
        Throws:
        Exception
      • getPrincipal

        protected Principal getPrincipal()
        Gets the current principal if one has been set, otherwise returns null.
        Returns:
        the current principal