private static final Log log = LogFactory.getLog(TokenAuthenticatorDSComponent.class);
protected void activate(ComponentContext ctxt) {
try {
TokenAuthenticator authenticator = new TokenAuthenticator();
Hashtable<String, String> props = new Hashtable<String, String>();
props.put(CarbonConstants.AUTHENTICATOR_TYPE, authenticator.getAuthenticatorName());
ctxt.getBundleContext().registerService(CarbonServerAuthenticator.class.getName(), authenticator, props);
log.debug("Carbon Core Services bundle is activated ");
} catch (Throwable e) {
log.error("Failed to activate Carbon Core Services bundle ", e);
}