protected void activate(ComponentContext context) { try { if (log.isDebugEnabled()) { log.debug("Identity Management Listener is enabled"); } BundleContext bundleContext = context.getBundleContext(); IdentityPasswordHistoryServiceDataHolder.getInstance().setBundleContext(bundleContext); PasswordHistoryValidationHandler handler = new PasswordHistoryValidationHandler(); context .getBundleContext() .registerService(AbstractEventHandler.class.getName(), handler, null); } catch (Exception e) { log.error("Error while activating identity governance component.", e); } }
protected void setIdentityGovernanceService(IdentityGovernanceService idpManager) { IdentityPasswordHistoryServiceDataHolder.getInstance().setIdentityGovernanceService(idpManager); }