use of org.apache.jackrabbit.oak.spi.security.authentication.external.impl.jmx.SyncMBeanImpl in project jackrabbit-oak by apache.
the class SyncAllExternalUsersTest method beforeSuite.
@Override
protected void beforeSuite() throws Exception {
super.beforeSuite();
bean = new SyncMBeanImpl(getContentRepository(), getSecurityProvider(), syncManager, "default", idpManager, idp.getName());
}
use of org.apache.jackrabbit.oak.spi.security.authentication.external.impl.jmx.SyncMBeanImpl in project jackrabbit-oak by apache.
the class SyncExternalUsersTest method beforeSuite.
@Override
protected void beforeSuite() throws Exception {
super.beforeSuite();
bean = new SyncMBeanImpl(getContentRepository(), getSecurityProvider(), syncManager, syncConfig.getName(), idpManager, idp.getName());
}
use of org.apache.jackrabbit.oak.spi.security.authentication.external.impl.jmx.SyncMBeanImpl in project jackrabbit-oak by apache.
the class ListIdentitiesTest method beforeSuite.
@Override
protected void beforeSuite() throws Exception {
super.beforeSuite();
SynchronizationMBean bean = new SyncMBeanImpl(getContentRepository(), getSecurityProvider(), syncManager, "default", idpManager, idp.getName());
bean.syncAllExternalUsers();
}
use of org.apache.jackrabbit.oak.spi.security.authentication.external.impl.jmx.SyncMBeanImpl in project jackrabbit-oak by apache.
the class PrincipalNameResolutionTest method beforeSuite.
@Override
protected void beforeSuite() throws Exception {
super.beforeSuite();
bean = new SyncMBeanImpl(getContentRepository(), getSecurityProvider(), syncManager, syncConfig.getName(), idpManager, idp.getName());
}
use of org.apache.jackrabbit.oak.spi.security.authentication.external.impl.jmx.SyncMBeanImpl in project jackrabbit-oak by apache.
the class ExternalLoginModuleFactory method mayRegisterSyncMBean.
private void mayRegisterSyncMBean() {
log.debug("Trying to register SynchronizationMBean");
if (mbeanRegistration != null) {
log.debug("SynchronizationMBean already registered");
return;
}
if (bundleContext == null) {
log.debug("Cannot register SynchronizationMBean; not yet activated.");
return;
}
if (contentRepository == null || securityProvider == null) {
log.debug("Cannot register SynchronizationMBean; waiting for references to ContentRepository|SecurityProvider.");
return;
}
Whiteboard whiteboard = new OsgiWhiteboard(bundleContext);
try {
log.debug("Registering SynchronizationMBean");
String idpName = osgiConfig.getConfigValue(PARAM_IDP_NAME, "");
String sncName = osgiConfig.getConfigValue(PARAM_SYNC_HANDLER_NAME, "");
SyncMBeanImpl bean = new SyncMBeanImpl(contentRepository, securityProvider, syncManager, sncName, idpManager, idpName);
Hashtable<String, String> table = new Hashtable();
table.put("type", "UserManagement");
table.put("name", "External Identity Synchronization Management");
table.put("handler", ObjectName.quote(sncName));
table.put("idp", ObjectName.quote(idpName));
mbeanRegistration = whiteboard.register(SynchronizationMBean.class, bean, ImmutableMap.of("jmx.objectname", new ObjectName("org.apache.jackrabbit.oak", table)));
log.debug("Registration of SynchronizationMBean completed");
} catch (MalformedObjectNameException e) {
log.error("Unable to register SynchronizationMBean", e);
}
}
Aggregations