Class PasswordServiceBaseProxy

  • All Implemented Interfaces:
    es.caib.seycon.ng.servei.PasswordService

    public class PasswordServiceBaseProxy
    extends Object
    implements es.caib.seycon.ng.servei.PasswordService

    Spring Service base class for es.caib.seycon.ng.servei.PasswordService, provides access to all services and entities referenced by this service.

    see es.caib.seycon.ng.servei.PasswordService
    • Constructor Detail

      • PasswordServiceBaseProxy

        public PasswordServiceBaseProxy()
    • Method Detail

      • setPasswordService

        public void setPasswordService​(com.soffid.iam.service.PasswordService passwordService)
        Sets reference to passwordService.
      • getPasswordService

        public com.soffid.iam.service.PasswordService getPasswordService()
        Gets reference to passwordService.
      • checkPassword

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

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public boolean checkPasswordExpired​(String accoount,
                                            String dispatcher)
                                     throws es.caib.seycon.ng.exception.InternalErrorException,
                                            es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        checkPasswordExpired in interface es.caib.seycon.ng.servei.PasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • 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 es.caib.seycon.ng.servei.PasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • checkPolicy

        @Transactional(isolation=DEFAULT,
                       propagation=REQUIRED,
                       rollbackFor=java.lang.Exception.class)
        public es.caib.seycon.ng.comu.PolicyCheckResult checkPolicy​(String account,
                                                                    String dispatcher,
                                                                    es.caib.seycon.ng.comu.Password password)
                                                             throws es.caib.seycon.ng.exception.InternalErrorException,
                                                                    es.caib.seycon.ng.exception.InternalErrorException
        Specified by:
        checkPolicy in interface es.caib.seycon.ng.servei.PasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • 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 es.caib.seycon.ng.servei.PasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • 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 es.caib.seycon.ng.servei.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 es.caib.seycon.ng.servei.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,
                                   es.caib.seycon.ng.comu.Password oldPassword,
                                   es.caib.seycon.ng.comu.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 es.caib.seycon.ng.servei.PasswordService
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
        es.caib.seycon.ng.exception.BadPasswordException
        es.caib.seycon.ng.exception.InvalidPasswordException
      • getPrincipal

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