public class DBPasswordPullActions extends Object implements PullActions
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.Modifier and Type | Field and Description |
---|---|
protected CipherAlgorithm |
cipher |
protected static String |
CLEARTEXT |
protected String |
encodedPassword |
protected static org.slf4j.Logger |
LOG |
protected UserDAO |
userDAO |
Constructor and Description |
---|
DBPasswordPullActions() |
Modifier and Type | Method and Description |
---|---|
void |
after(ProvisioningProfile<?,?> profile,
SyncDelta delta,
EntityTO any,
ProvisioningReport result)
Action to be executed after each local entity pull.
|
void |
beforeProvision(ProvisioningProfile<?,?> profile,
SyncDelta delta,
EntityTO any)
Action to be executed before to create a pulled entity locally.
|
<M extends AnyPatch> |
beforeUpdate(ProvisioningProfile<?,?> profile,
SyncDelta delta,
EntityTO entityTO,
M anyPatch)
Action to be executed before to update a pulled entity locally.
|
protected String |
getCipherAlgorithm(ConnInstance connInstance) |
protected void |
parseEncodedPassword(String password,
Connector connector) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beforeAssign, beforeDelete, beforeDeprovision, beforeLink, beforeUnassign, beforeUnlink, moreAttrsToGet, moreAttrsToGet, onError, preprocess
afterAll, beforeAll
protected static final org.slf4j.Logger LOG
protected static final String CLEARTEXT
@Autowired protected UserDAO userDAO
protected String encodedPassword
protected CipherAlgorithm cipher
@Transactional(readOnly=true) public void beforeProvision(ProvisioningProfile<?,?> profile, SyncDelta delta, EntityTO any) throws org.quartz.JobExecutionException
PullActions
UnmatchingRule.PROVISION
(default un-matching rule) is applied.beforeProvision
in interface PullActions
profile
- profile of the pull being executed.delta
- retrieved pull informationany
- entityorg.quartz.JobExecutionException
- in case of generic failure@Transactional(readOnly=true) public <M extends AnyPatch> void beforeUpdate(ProvisioningProfile<?,?> profile, SyncDelta delta, EntityTO entityTO, M anyPatch) throws org.quartz.JobExecutionException
PullActions
MatchingRule.UPDATE
(default matching rule) is applied.beforeUpdate
in interface PullActions
M
- any object modificationsprofile
- profile of the pull being executed.delta
- retrieved pull informationentityTO
- entityanyPatch
- modificationorg.quartz.JobExecutionException
- in case of generic failure.protected String getCipherAlgorithm(ConnInstance connInstance)
@Transactional public void after(ProvisioningProfile<?,?> profile, SyncDelta delta, EntityTO any, ProvisioningReport result) throws org.quartz.JobExecutionException
PullActions
after
in interface PullActions
profile
- profile of the pull being executed.delta
- retrieved pull information (may be modified by beforeProvision / beforeUpdate /
beforeDelete)any
- entityresult
- global pull results at the current pull steporg.quartz.JobExecutionException
- in case of generic failureCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.