Class DBPasswordPullActions
- java.lang.Object
-
- org.apache.syncope.core.provisioning.java.pushpull.DBPasswordPullActions
-
- All Implemented Interfaces:
ProvisioningActions,PullActions
public class DBPasswordPullActions extends Object implements PullActions
APullActionsimplementation 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 CipherAlgorithmcipherprotected static StringCLEARTEXTprotected StringencodedPasswordprotected static LoggerLOGprotected UserDAOuserDAO
-
Constructor Summary
Constructors Constructor Description DBPasswordPullActions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter(ProvisioningProfile<?,?> profile, SyncDelta delta, EntityTO any, ProvisioningReport result)Action to be executed after each local entity pull.voidbeforeProvision(ProvisioningProfile<?,?> profile, SyncDelta delta, AnyCR anyCR)Action to be executed before to create a pulled entity locally.voidbeforeUpdate(ProvisioningProfile<?,?> profile, SyncDelta delta, EntityTO entityTO, AnyUR anyUR)Action to be executed before to update a pulled entity locally.protected StringgetCipherAlgorithm(ConnInstance connInstance)protected voidparseEncodedPassword(String password, Connector connector)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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 Logger LOG
-
CLEARTEXT
protected static final String CLEARTEXT
- See Also:
- Constant Field Values
-
userDAO
@Autowired protected UserDAO userDAO
-
encodedPassword
protected String encodedPassword
-
cipher
protected CipherAlgorithm cipher
-
-
Method Detail
-
beforeProvision
@Transactional(readOnly=true) public void beforeProvision(ProvisioningProfile<?,?> profile, SyncDelta delta, AnyCR anyCR) throws org.quartz.JobExecutionException
Description copied from interface:PullActionsAction to be executed before to create a pulled entity locally. The entity is created locally upon pull in case of the un-matching ruleUnmatchingRule.PROVISION(default un-matching rule) is applied.- Specified by:
beforeProvisionin interfacePullActions- Parameters:
profile- profile of the pull being executed.delta- retrieved pull informationanyCR- create request- Throws:
org.quartz.JobExecutionException- in case of generic failure
-
beforeUpdate
@Transactional(readOnly=true) public void beforeUpdate(ProvisioningProfile<?,?> profile, SyncDelta delta, EntityTO entityTO, AnyUR anyUR) throws org.quartz.JobExecutionException
Description copied from interface:PullActionsAction to be executed before to update a pulled entity locally. The entity is updated upon pull in case of the matching ruleMatchingRule.UPDATE(default matching rule) is applied.- Specified by:
beforeUpdatein interfacePullActions- Parameters:
profile- profile of the pull being executed.delta- retrieved pull informationentityTO- entityanyUR- modification- Throws:
org.quartz.JobExecutionException- in case of generic failure.
-
getCipherAlgorithm
protected String getCipherAlgorithm(ConnInstance connInstance)
-
after
@Transactional public void after(ProvisioningProfile<?,?> profile, SyncDelta delta, EntityTO any, ProvisioningReport result) throws org.quartz.JobExecutionException
Description copied from interface:PullActionsAction to be executed after each local entity pull.- Specified by:
afterin interfacePullActions- Parameters:
profile- profile of the pull being executed.delta- retrieved pull information (may be modified by beforeProvisionTO / beforeUpdate / beforeDelete)any- entityresult- global pull results at the current pull step- Throws:
org.quartz.JobExecutionException- in case of generic failure
-
-