Class InternalPasswordServiceBase

  • All Implemented Interfaces:
    InternalPasswordService
    Direct Known Subclasses:
    InternalPasswordServiceImpl

    public abstract class InternalPasswordServiceBase
    extends Object
    implements InternalPasswordService

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

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

      • InternalPasswordServiceBase

        public InternalPasswordServiceBase()
    • Method Detail

      • setAccountEntityDao

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

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

        public void setAccountPasswordEntityDao​(AccountPasswordEntityDao accountPasswordEntityDao)
        Sets reference to accountPasswordEntityDao.
      • getAccountPasswordEntityDao

        public AccountPasswordEntityDao getAccountPasswordEntityDao()
        Gets reference to accountPasswordEntityDao.
      • setConsoleLogonService

        public void setConsoleLogonService​(com.soffid.iam.sync.service.ConsoleLogonService consoleLogonService)
        Sets reference to consoleLogonService.
      • getConsoleLogonService

        public com.soffid.iam.sync.service.ConsoleLogonService getConsoleLogonService()
        Gets reference to consoleLogonService.
      • setPasswordEntityDao

        public void setPasswordEntityDao​(PasswordEntityDao contrasenyaEntityDao)
        Sets reference to contrasenyaEntityDao.
      • getPasswordEntityDao

        public PasswordEntityDao getPasswordEntityDao()
        Gets reference to contrasenyaEntityDao.
      • 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.
      • setUserDomainEntityDao

        public void setUserDomainEntityDao​(UserDomainEntityDao dominiUsuariEntityDao)
        Sets reference to dominiUsuariEntityDao.
      • getUserDomainEntityDao

        public UserDomainEntityDao getUserDomainEntityDao()
        Gets reference to dominiUsuariEntityDao.
      • setIssueService

        public void setIssueService​(com.soffid.iam.service.IssueService issueService)
        Sets reference to issueService.
      • getIssueService

        public com.soffid.iam.service.IssueService getIssueService()
        Gets reference to issueService.
      • setPasswordPolicyEntityDao

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

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

        public void setSyncServerService​(com.soffid.iam.service.SyncServerService seyconServerService)
        Sets reference to seyconServerService.
      • getSyncServerService

        public com.soffid.iam.service.SyncServerService getSyncServerService()
        Gets reference to seyconServerService.
      • setSignalService

        public void setSignalService​(SignalService signalService)
        Sets reference to signalService.
      • getSignalService

        public SignalService getSignalService()
        Gets reference to signalService.
      • setTaskGenerator

        public void setTaskGenerator​(TaskGenerator taskGenerator)
        Sets reference to taskGenerator.
      • getTaskGenerator

        public TaskGenerator getTaskGenerator()
        Gets reference to taskGenerator.
      • setTaskQueue

        public void setTaskQueue​(TaskQueue taskQueue)
        Sets reference to taskQueue.
      • getTaskQueue

        public TaskQueue getTaskQueue()
        Gets reference to taskQueue.
      • setTaskEntityDao

        public void setTaskEntityDao​(TaskEntityDao tasqueEntityDao)
        Sets reference to tasqueEntityDao.
      • getTaskEntityDao

        public TaskEntityDao getTaskEntityDao()
        Gets reference to tasqueEntityDao.
      • setTenantEntityDao

        public void setTenantEntityDao​(TenantEntityDao tenantEntityDao)
        Sets reference to tenantEntityDao.
      • getTenantEntityDao

        public TenantEntityDao getTenantEntityDao()
        Gets reference to tenantEntityDao.
      • setUserTypeEntityDao

        public void setUserTypeEntityDao​(UserTypeEntityDao tipusUsuariEntityDao)
        Sets reference to tipusUsuariEntityDao.
      • getUserTypeEntityDao

        public UserTypeEntityDao getUserTypeEntityDao()
        Gets reference to tipusUsuariEntityDao.
      • setUserEntityDao

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

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public boolean checkPin​(UserEntity user,
                                String pin)
                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation checkPin
        Specified by:
        checkPin in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • existsAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public boolean existsAccountPassword​(AccountEntity account)
                                      throws es.caib.seycon.ng.exception.InternalErrorException,
                                             es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation existsAccountPassword
        Specified by:
        existsAccountPassword in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • isAccountPasswordExpired

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public boolean isAccountPasswordExpired​(AccountEntity account)
                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation isAccountPasswordExpired
        Specified by:
        isAccountPasswordExpired in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • isOldAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public boolean isOldAccountPassword​(AccountEntity account,
                                            com.soffid.iam.api.Password password)
                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                            es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation isOldAccountPassword
        Specified by:
        isOldAccountPassword in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleIsOldAccountPassword

        protected abstract boolean handleIsOldAccountPassword​(AccountEntity account,
                                                              com.soffid.iam.api.Password password)
                                                       throws Exception
        Throws:
        Exception
      • updateExpiredPasswords

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public boolean updateExpiredPasswords​(UserEntity usuari,
                                              boolean externalAuth)
                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                              es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation updateExpiredPasswords
        Specified by:
        updateExpiredPasswords in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleUpdateExpiredPasswords

        protected abstract boolean handleUpdateExpiredPasswords​(UserEntity usuari,
                                                                boolean externalAuth)
                                                         throws Exception
        Throws:
        Exception
      • getAccountPasswordsStatus

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PasswordStatus getAccountPasswordsStatus​(AccountEntity account)
                                                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                           es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation getAccountPasswordsStatus
        Specified by:
        getAccountPasswordsStatus in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetAccountPasswordsStatus

        protected abstract com.soffid.iam.api.PasswordStatus handleGetAccountPasswordsStatus​(AccountEntity account)
                                                                                      throws Exception
        Throws:
        Exception
      • getAccountPasswordsStatusById

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PasswordStatus getAccountPasswordsStatusById​(long account)
                                                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                               es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation getAccountPasswordsStatusById
        Specified by:
        getAccountPasswordsStatusById in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetAccountPasswordsStatusById

        protected abstract com.soffid.iam.api.PasswordStatus handleGetAccountPasswordsStatusById​(long account)
                                                                                          throws Exception
        Throws:
        Exception
      • getPasswordsStatusById

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PasswordStatus getPasswordsStatusById​(long user,
                                                                        long domini)
                                                                 throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                        es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation getPasswordsStatusById
        Specified by:
        getPasswordsStatusById in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetPasswordsStatusById

        protected abstract com.soffid.iam.api.PasswordStatus handleGetPasswordsStatusById​(long user,
                                                                                          long domini)
                                                                                   throws Exception
        Throws:
        Exception
      • generateFakeAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Password generateFakeAccountPassword​(AccountEntity account)
                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation generateFakeAccountPassword
        Specified by:
        generateFakeAccountPassword in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGenerateFakeAccountPassword

        protected abstract com.soffid.iam.api.Password handleGenerateFakeAccountPassword​(AccountEntity account)
                                                                                  throws Exception
        Throws:
        Exception
      • generateNewAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.Password generateNewAccountPassword​(AccountEntity account,
                                                                      boolean mustBeChanged)
                                                               throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                      es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation generateNewAccountPassword
        Specified by:
        generateNewAccountPassword in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGenerateNewAccountPassword

        protected abstract com.soffid.iam.api.Password handleGenerateNewAccountPassword​(AccountEntity account,
                                                                                        boolean mustBeChanged)
                                                                                 throws Exception
        Throws:
        Exception
      • checkAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PasswordValidation checkAccountPassword​(AccountEntity account,
                                                                          com.soffid.iam.api.Password password,
                                                                          boolean checkTrusted,
                                                                          boolean checkExpired)
                                                                   throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                          es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation checkAccountPassword
        Specified by:
        checkAccountPassword in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCheckAccountPassword

        protected abstract com.soffid.iam.api.PasswordValidation handleCheckAccountPassword​(AccountEntity account,
                                                                                            com.soffid.iam.api.Password password,
                                                                                            boolean checkTrusted,
                                                                                            boolean checkExpired)
                                                                                     throws Exception
        Throws:
        Exception
      • checkPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PasswordValidation checkPassword​(UserEntity user,
                                                                   PasswordDomainEntity passwordDomain,
                                                                   com.soffid.iam.api.Password password,
                                                                   boolean checkTrusted,
                                                                   boolean checkExpired)
                                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                   es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation checkPassword
        Specified by:
        checkPassword in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCheckPassword

        protected abstract com.soffid.iam.api.PasswordValidation handleCheckPassword​(UserEntity user,
                                                                                     PasswordDomainEntity passwordDomain,
                                                                                     com.soffid.iam.api.Password password,
                                                                                     boolean checkTrusted,
                                                                                     boolean checkExpired)
                                                                              throws Exception
        Throws:
        Exception
      • checkAccountPolicy

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PolicyCheckResult checkAccountPolicy​(AccountEntity account,
                                                                       com.soffid.iam.api.Password password)
                                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                       es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation checkAccountPolicy
        Specified by:
        checkAccountPolicy in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCheckAccountPolicy

        protected abstract com.soffid.iam.api.PolicyCheckResult handleCheckAccountPolicy​(AccountEntity account,
                                                                                         com.soffid.iam.api.Password password)
                                                                                  throws Exception
        Throws:
        Exception
      • checkPolicy

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PolicyCheckResult checkPolicy​(PasswordPolicyEntity policy,
                                                                com.soffid.iam.api.Password password)
                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation checkPolicy
        Specified by:
        checkPolicy in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCheckPolicy

        protected abstract com.soffid.iam.api.PolicyCheckResult handleCheckPolicy​(PasswordPolicyEntity policy,
                                                                                  com.soffid.iam.api.Password password)
                                                                           throws Exception
        Throws:
        Exception
      • checkPolicy

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PolicyCheckResult checkPolicy​(UserEntity user,
                                                                PasswordDomainEntity passwordDomain,
                                                                com.soffid.iam.api.Password password)
                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation checkPolicy
        Specified by:
        checkPolicy in interface InternalPasswordService
        Returns:
        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​(UserEntity user,
                                                                PasswordDomainEntity passwordDomain,
                                                                com.soffid.iam.api.Password password,
                                                                boolean ignoreMinimumPeriod)
                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation checkPolicy
        Specified by:
        checkPolicy in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCheckPolicy

        protected abstract com.soffid.iam.api.PolicyCheckResult handleCheckPolicy​(UserEntity user,
                                                                                  PasswordDomainEntity passwordDomain,
                                                                                  com.soffid.iam.api.Password password,
                                                                                  boolean ignoreMinimumPeriod)
                                                                           throws Exception
        Throws:
        Exception
      • checkPolicy

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.PolicyCheckResult checkPolicy​(UserEntity user,
                                                                PasswordPolicyEntity politica,
                                                                com.soffid.iam.api.Password password)
                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation checkPolicy
        Specified by:
        checkPolicy in interface InternalPasswordService
        Returns:
        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​(UserEntity user,
                                                                PasswordPolicyEntity politica,
                                                                com.soffid.iam.api.Password password,
                                                                boolean ignoreMinimumPeriod)
                                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation checkPolicy Checks password policy, ignoring the minimum password period option
        Specified by:
        checkPolicy in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleCheckPolicy

        protected abstract com.soffid.iam.api.PolicyCheckResult handleCheckPolicy​(UserEntity user,
                                                                                  PasswordPolicyEntity politica,
                                                                                  com.soffid.iam.api.Password password,
                                                                                  boolean ignoreMinimumPeriod)
                                                                           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
        Description copied from interface: InternalPasswordService
        Operation getDefaultDispatcher
        Specified by:
        getDefaultDispatcher in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetDefaultDispatcher

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public Calendar getPasswordExpiredDate​(long user,
                                               long passwordDomain)
                                        throws es.caib.seycon.ng.exception.InternalErrorException,
                                               es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation getPasswordExpiredDate
        Specified by:
        getPasswordExpiredDate in interface InternalPasswordService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleGetPasswordExpiredDate

        protected abstract Calendar handleGetPasswordExpiredDate​(long user,
                                                                 long passwordDomain)
                                                          throws Exception
        Throws:
        Exception
      • confirmAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void confirmAccountPassword​(AccountEntity account,
                                           com.soffid.iam.api.Password password)
                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                           es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation confirmAccountPassword
        Specified by:
        confirmAccountPassword in interface InternalPasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleConfirmAccountPassword

        protected abstract void handleConfirmAccountPassword​(AccountEntity account,
                                                             com.soffid.iam.api.Password password)
                                                      throws Exception
        Throws:
        Exception
      • disableExpiredPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void disableExpiredPassword()
                                    throws es.caib.seycon.ng.exception.InternalErrorException,
                                           es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation disableExpiredPassword
        Specified by:
        disableExpiredPassword in interface InternalPasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDisableExpiredPassword

        protected abstract void handleDisableExpiredPassword()
                                                      throws Exception
        Throws:
        Exception
      • disableUntrustedPasswords

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void disableUntrustedPasswords()
                                       throws es.caib.seycon.ng.exception.InternalErrorException,
                                              es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation disableUntrustedPasswords
        Specified by:
        disableUntrustedPasswords in interface InternalPasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleDisableUntrustedPasswords

        protected abstract void handleDisableUntrustedPasswords()
                                                         throws Exception
        Throws:
        Exception
      • storeAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void storeAccountPassword​(AccountEntity account,
                                         com.soffid.iam.api.Password password,
                                         boolean mustChange,
                                         Date expirationDate)
                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                         es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation storeAccountPassword
        Specified by:
        storeAccountPassword in interface InternalPasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleStoreAccountPassword

        protected abstract void handleStoreAccountPassword​(AccountEntity account,
                                                           com.soffid.iam.api.Password password,
                                                           boolean mustChange,
                                                           Date expirationDate)
                                                    throws Exception
        Throws:
        Exception
      • storeAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void storeAccountPassword​(String account,
                                         String dispatcher,
                                         String password,
                                         boolean mustChange,
                                         Date expirationDate)
                                  throws es.caib.seycon.ng.exception.InternalErrorException,
                                         es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation storeAccountPassword
        Specified by:
        storeAccountPassword in interface InternalPasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleStoreAccountPassword

        protected abstract void handleStoreAccountPassword​(String account,
                                                           String dispatcher,
                                                           String password,
                                                           boolean mustChange,
                                                           Date expirationDate)
                                                    throws Exception
        Throws:
        Exception
      • storeAndForwardAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void storeAndForwardAccountPassword​(AccountEntity account,
                                                   com.soffid.iam.api.Password password,
                                                   boolean mustChange,
                                                   Date expirationDate)
                                            throws es.caib.seycon.ng.exception.InternalErrorException,
                                                   es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation storeAndForwardAccountPassword
        Specified by:
        storeAndForwardAccountPassword in interface InternalPasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleStoreAndForwardAccountPassword

        protected abstract void handleStoreAndForwardAccountPassword​(AccountEntity account,
                                                                     com.soffid.iam.api.Password password,
                                                                     boolean mustChange,
                                                                     Date expirationDate)
                                                              throws Exception
        Throws:
        Exception
      • storeAndForwardAccountPasswordById

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void storeAndForwardAccountPasswordById​(long account,
                                                       com.soffid.iam.api.Password password,
                                                       boolean mustChange,
                                                       Date expirationDate)
                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                       es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation storeAndForwardAccountPasswordById
        Specified by:
        storeAndForwardAccountPasswordById in interface InternalPasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleStoreAndForwardAccountPasswordById

        protected abstract void handleStoreAndForwardAccountPasswordById​(long account,
                                                                         com.soffid.iam.api.Password password,
                                                                         boolean mustChange,
                                                                         Date expirationDate)
                                                                  throws Exception
        Throws:
        Exception
      • handleStoreAndForwardPassword

        protected abstract void handleStoreAndForwardPassword​(UserEntity user,
                                                              PasswordDomainEntity passwordDomain,
                                                              com.soffid.iam.api.Password password,
                                                              boolean mustChange)
                                                       throws Exception
        Throws:
        Exception
      • storeAndForwardPasswordById

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void storeAndForwardPasswordById​(long user,
                                                long passwordDomain,
                                                com.soffid.iam.api.Password password,
                                                boolean mustChange)
                                         throws es.caib.seycon.ng.exception.InternalErrorException,
                                                es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation storeAndForwardPasswordById
        Specified by:
        storeAndForwardPasswordById in interface InternalPasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleStoreAndForwardPasswordById

        protected abstract void handleStoreAndForwardPasswordById​(long user,
                                                                  long passwordDomain,
                                                                  com.soffid.iam.api.Password password,
                                                                  boolean mustChange)
                                                           throws Exception
        Throws:
        Exception
      • storeAndSynchronizeAccountPassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void storeAndSynchronizeAccountPassword​(AccountEntity account,
                                                       com.soffid.iam.api.Password password,
                                                       boolean mustChange,
                                                       Date expirationDate)
                                                throws es.caib.seycon.ng.exception.InternalErrorException,
                                                       es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation storeAndSynchronizeAccountPassword
        Specified by:
        storeAndSynchronizeAccountPassword in interface InternalPasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleStoreAndSynchronizeAccountPassword

        protected abstract void handleStoreAndSynchronizeAccountPassword​(AccountEntity account,
                                                                         com.soffid.iam.api.Password password,
                                                                         boolean mustChange,
                                                                         Date expirationDate)
                                                                  throws Exception
        Throws:
        Exception
      • handleStoreAndSynchronizePassword

        protected abstract void handleStoreAndSynchronizePassword​(UserEntity user,
                                                                  PasswordDomainEntity passwordDomain,
                                                                  com.soffid.iam.api.Password password,
                                                                  boolean mustChange)
                                                           throws Exception
        Throws:
        Exception
      • storePassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void storePassword​(UserEntity user,
                                  PasswordDomainEntity passwordDomain,
                                  com.soffid.iam.api.Password password,
                                  boolean mustChange)
                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                  es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation storePassword
        Specified by:
        storePassword in interface InternalPasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • storePassword

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public void storePassword​(String user,
                                  String passwordDomain,
                                  String password,
                                  boolean mustChange)
                           throws es.caib.seycon.ng.exception.InternalErrorException,
                                  es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: InternalPasswordService
        Operation storePassword
        Specified by:
        storePassword in interface InternalPasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleStorePassword

        protected abstract void handleStorePassword​(String user,
                                                    String passwordDomain,
                                                    String password,
                                                    boolean mustChange)
                                             throws Exception
        Throws:
        Exception
      • getPrincipal

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