@Test public void beforeProvision() throws JobExecutionException { String digest = "SHA256"; String password = "t3stPassw0rd"; anyCR = new UserCR.Builder(SyncopeConstants.ROOT_REALM, "username"). password(String.format("{%s}%s", digest, password)).build(); ldapPasswordPullActions.beforeProvision(profile, syncDelta, anyCR); assertEquals(CipherAlgorithm.valueOf(digest), ReflectionTestUtils.getField(ldapPasswordPullActions, "cipher")); assertEquals(password, ReflectionTestUtils.getField(ldapPasswordPullActions, "encodedPassword")); }
@Transactional(readOnly = true) @Override public void beforeProvision( final ProvisioningProfile<?, ?> profile, final SyncDelta delta, final AnyCR anyCR) throws JobExecutionException { if (anyCR instanceof UserCR) { String password = ((UserCR) anyCR).getPassword(); parseEncodedPassword(password); } }
LDAPPasswordPullActions implements PullActions { @Transactional(readOnly = true) @Override public void beforeProvision( final ProvisioningProfile<?, ?> profile, final SyncDelta delta, final AnyCR anyCR) throws JobExecutionException { if (anyCR instanceof UserCR) { String password = ((UserCR) anyCR).getPassword(); parseEncodedPassword(password); } } }
LDAPPasswordPullActions implements PullActions { @Transactional(readOnly = true) @Override public void beforeProvision( final ProvisioningProfile<?, ?> profile, final SyncDelta delta, final AnyCR anyCR) throws JobExecutionException { if (anyCR instanceof UserCR) { String password = ((UserCR) anyCR).getPassword(); parseEncodedPassword(password); } }  }
LDAPPasswordPullActions implements PullActions { @Transactional(readOnly = true) @Override public void beforeProvision( final ProvisioningProfile<?, ?> profile, final SyncDelta delta, final AnyCR anyCR) throws JobExecutionException { if (anyCR instanceof UserCR) { String password = ((UserCR) anyCR).getPassword(); parseEncodedPassword(password); } }  @Transactional(readOnly = true) @Override void beforeProvision(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final AnyCR anyCR); @Transactional(readOnly = true) @Override void beforeUpdate(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final EntityTO entityTO,
            final AnyUR anyUR); @Transactional @Override void after(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final EntityTO entity,
            final ProvisioningReport result); }
LDAPPasswordPullActions implements PullActions { @Transactional(readOnly = true) @Override public void beforeProvision( final ProvisioningProfile<?, ?> profile, final SyncDelta delta, final AnyCR anyCR) throws JobExecutionException { if (anyCR instanceof UserCR) { String password = ((UserCR) anyCR).getPassword(); parseEncodedPassword(password); } }  @Transactional(readOnly = true) @Override void beforeProvision(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final AnyCR anyCR); @Transactional(readOnly = true) @Override void beforeUpdate(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final EntityTO entityTO,
            final AnyUR anyUR); @Transactional @Override void after(
            final ProvisioningProfile<?, ?> profile,
            final SyncDelta delta,
            final EntityTO entity,
            final ProvisioningReport result);  }