public class Activator implements BundleActivator {
private static final Log log = LogFactory.getLog(Activator.class);
public void start(BundleContext bc) throws Exception {
SSOUIAuthenticator authenticator = new SSOUIAuthenticator();
Hashtable<String, String> props = new Hashtable<String, String>();
props.put(CarbonConstants.AUTHENTICATOR_TYPE, authenticator.getAuthenticatorName());
bc.registerService(CarbonUIAuthenticator.class.getName(), authenticator, props);
if (log.isDebugEnabled()) {
log.debug("Started the SSO Authenticator");
}
}