package eu.artemis.shield.composition.middlewareadapter.impl;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import eu.artemis.shield.discovery.gdm.interfaces.IGenericDiscovery;
import java.util.Hashtable;
import java.util.Vector;
public class AuthenticationServiceAppRegistration extends AppRegistration {
public AuthenticationServiceAppRegistration(BundleContext bc)
{
super(bc);
String project_name = "Authentication";
String service_name = "Authentication";
String service_description = "Authentication API";
String vid = null;
String type = "service:eu.artemis.shield:http";
String url = "http://localhost:8080/applications/jars/Authentication/Authentication_api-0.0.1.jar";
String export = "eu.artemis.shield.functionalities.authentication";
long lifetime = 43200; // 1 day
registerAPI(url, vid, type, lifetime, export, "", project_name, service_name, service_description);
String Import = "eu.artemis.shield.functionalities.cryptography,eu.artemis.shield.functionalities.authentication";
url = "http://localhost:8080/applications/jars/EAPAuthentication/EAPAuthentication-0.0.1.jar";
String SPD = "1";
String owl = "resources/data/data_7_Pilota.owl";
service_description = "Authentication mechanism based on EAP";
register(url, vid, type, lifetime, export, Import, project_name, service_name, service_description, SPD, owl);
url = "http://localhost:8080/applications/jars/PAPAuthentication/PAPAuthentication-0.0.1.jar";
SPD = "1";
owl = "resources/data/data_8_Pilota.owl";
service_description = "Authentication mechanism based on PAP";
register(url, vid, type, lifetime, export, Import, project_name, service_name, service_description, SPD, owl);
url = "http://localhost:8080/applications/jars/CHAPAuthentication/CHAPAuthentication-0.0.1.jar";
SPD = "8";
owl = "resources/data/data_9_Pilota.owl";
service_description = "Authentication mechanism based on CHAP";
register(url, vid, type, lifetime, export, Import, project_name, service_name, service_description, SPD, owl);
}
}
|