@Test public void beforeProvision() throws JobExecutionException { String digest = "SHA256"; String password = "t3stPassw0rd"; userCR = new UserCR.Builder(SyncopeConstants.ROOT_REALM, "user").password(password).build(); connConfProperty.getValues().clear(); connConfProperty.getValues().add(digest); dBPasswordPullActions.beforeProvision(profile, syncDelta, userCR); userTO.setPassword(password); connConfProperty.getValues().clear(); connConfProperty.getValues().add(digest); dBPasswordPullActions.beforeProvision(profile, syncDelta, userCR); assertEquals(CipherAlgorithm.valueOf(digest), ReflectionTestUtils.getField(dBPasswordPullActions, "cipher")); assertEquals(password, ReflectionTestUtils.getField(dBPasswordPullActions, "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, profile.getConnector()); } }
DBPasswordPullActions 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, profile.getConnector()); } } }
DBPasswordPullActions 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, profile.getConnector()); } }  }
DBPasswordPullActions 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, profile.getConnector()); } }  @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 any,
            final ProvisioningReport result); }
DBPasswordPullActions 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, profile.getConnector()); } }  @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 any,
            final ProvisioningReport result);  }