Class DBPasswordPullActions

  • All Implemented Interfaces:
    org.apache.syncope.core.provisioning.api.pushpull.ProvisioningActions, org.apache.syncope.core.provisioning.api.pushpull.PullActions

    public class DBPasswordPullActions
    extends Object
    implements org.apache.syncope.core.provisioning.api.pushpull.PullActions
    A PullActions implementation which allows the ability to import passwords from a Database backend, where the passwords are hashed according to the password cipher algorithm property of the (DB) Connector and HEX-encoded.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.syncope.common.lib.types.CipherAlgorithm cipher  
      protected static String CLEARTEXT  
      protected String encodedPassword  
      protected static org.slf4j.Logger LOG  
      protected org.apache.syncope.core.persistence.api.dao.UserDAO userDAO  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void after​(org.apache.syncope.core.provisioning.api.pushpull.ProvisioningProfile<?,​?> profile, org.identityconnectors.framework.common.objects.SyncDelta delta, org.apache.syncope.common.lib.to.EntityTO any, org.apache.syncope.common.lib.to.ProvisioningReport result)  
      void beforeProvision​(org.apache.syncope.core.provisioning.api.pushpull.ProvisioningProfile<?,​?> profile, org.identityconnectors.framework.common.objects.SyncDelta delta, org.apache.syncope.common.lib.request.AnyCR anyCR)  
      void beforeUpdate​(org.apache.syncope.core.provisioning.api.pushpull.ProvisioningProfile<?,​?> profile, org.identityconnectors.framework.common.objects.SyncDelta delta, org.apache.syncope.common.lib.to.EntityTO entityTO, org.apache.syncope.common.lib.request.AnyUR anyUR)  
      protected String getCipherAlgorithm​(org.apache.syncope.core.persistence.api.entity.ConnInstance connInstance)  
      protected void parseEncodedPassword​(String password, org.apache.syncope.core.provisioning.api.Connector connector)  
      • Methods inherited from interface org.apache.syncope.core.provisioning.api.pushpull.ProvisioningActions

        afterAll, beforeAll
      • Methods inherited from interface org.apache.syncope.core.provisioning.api.pushpull.PullActions

        beforeAssign, beforeAssign, beforeAssign, beforeDelete, beforeDeprovision, beforeLink, beforeProvision, beforeProvision, beforeUnassign, beforeUnlink, moreAttrsToGet, moreAttrsToGet, onError, preprocess
    • Field Detail

      • LOG

        protected static final org.slf4j.Logger LOG
      • userDAO

        @Autowired
        protected org.apache.syncope.core.persistence.api.dao.UserDAO userDAO
      • encodedPassword

        protected String encodedPassword
      • cipher

        protected org.apache.syncope.common.lib.types.CipherAlgorithm cipher
    • Constructor Detail

      • DBPasswordPullActions

        public DBPasswordPullActions()
    • Method Detail

      • beforeProvision

        @Transactional(readOnly=true)
        public void beforeProvision​(org.apache.syncope.core.provisioning.api.pushpull.ProvisioningProfile<?,​?> profile,
                                    org.identityconnectors.framework.common.objects.SyncDelta delta,
                                    org.apache.syncope.common.lib.request.AnyCR anyCR)
                             throws org.quartz.JobExecutionException
        Specified by:
        beforeProvision in interface org.apache.syncope.core.provisioning.api.pushpull.PullActions
        Throws:
        org.quartz.JobExecutionException
      • beforeUpdate

        @Transactional(readOnly=true)
        public void beforeUpdate​(org.apache.syncope.core.provisioning.api.pushpull.ProvisioningProfile<?,​?> profile,
                                 org.identityconnectors.framework.common.objects.SyncDelta delta,
                                 org.apache.syncope.common.lib.to.EntityTO entityTO,
                                 org.apache.syncope.common.lib.request.AnyUR anyUR)
                          throws org.quartz.JobExecutionException
        Specified by:
        beforeUpdate in interface org.apache.syncope.core.provisioning.api.pushpull.PullActions
        Throws:
        org.quartz.JobExecutionException
      • parseEncodedPassword

        protected void parseEncodedPassword​(String password,
                                            org.apache.syncope.core.provisioning.api.Connector connector)
      • getCipherAlgorithm

        protected String getCipherAlgorithm​(org.apache.syncope.core.persistence.api.entity.ConnInstance connInstance)
      • after

        @Transactional
        public void after​(org.apache.syncope.core.provisioning.api.pushpull.ProvisioningProfile<?,​?> profile,
                          org.identityconnectors.framework.common.objects.SyncDelta delta,
                          org.apache.syncope.common.lib.to.EntityTO any,
                          org.apache.syncope.common.lib.to.ProvisioningReport result)
                   throws org.quartz.JobExecutionException
        Specified by:
        after in interface org.apache.syncope.core.provisioning.api.pushpull.PullActions
        Throws:
        org.quartz.JobExecutionException