Révision bf9c3717
Ajouté par Remy Menard il y a environ 11 ans
SigMa/SigMa-Client/src/main/java/fr/unicaen/iota/sigma/client/SigMaClient.java | ||
---|---|---|
import org.fosstrak.epcis.model.EPCISEventType;
|
||
|
||
/**
|
||
* This
|
||
* <code>SigMAClient</code> performs the requests to the SigMA web service. This
|
||
* This <code>SigMAClient</code> performs the requests to the SigMA web service. This
|
||
* class receives the address of the SigMA web service and sends the signature
|
||
* verification resquests.
|
||
*/
|
||
... | ... | |
}
|
||
|
||
public void configureService(String address, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) throws MalformedURLException, Exception {
|
||
System.setProperty("javax.net.ssl.keyStore", pksFilename);
|
||
System.setProperty("javax.net.ssl.keyStorePassword", pksPassword);
|
||
System.setProperty("javax.net.ssl.trustStore", trustPksFilename);
|
||
System.setProperty("javax.net.ssl.trustStorePassword", trustPksPassword);
|
||
if (pksFilename != null && pksPassword != null && trustPksFilename != null && trustPksPassword != null) {
|
||
System.setProperty("javax.net.ssl.keyStore", pksFilename);
|
||
System.setProperty("javax.net.ssl.keyStorePassword", pksPassword);
|
||
System.setProperty("javax.net.ssl.trustStore", trustPksFilename);
|
||
System.setProperty("javax.net.ssl.trustStorePassword", trustPksPassword);
|
||
}
|
||
URL wsdlUrl = new URL(address + "?wsdl");
|
||
SigMaService service = new SigMaService(wsdlUrl);
|
||
port = service.getPort(SigMaServicePortType.class);
|
Formats disponibles : Unified diff
Version 1.99
- a few bugs fixed!
- new testing application to capture events
- new options to the command line to configure the public/private keys
for TLS and for signature
- new method more accurate than "traceEPC": the events are sorted by
EPCIS
- New options added to the command line
- user can be identified by alias, if the DN of his certificate is
incompatible with the LDAP directory
- new shell script to configure the LDAP directory (same
functionnalities as IoTa-Installer)
- installs and configures LaMBDa
- finer certificate mangagement
- EpcILoN correctly subscribe with TLS to ETa
- new figure for LaMBDa
- shows data flows between PHI and YPSilon
- sets DS and DSeTa in different schemas