Révision 19b58bab
Ajouté par Remy Menard il y a plus de 11 ans
PSi/src/main/java/fr/unicaen/iota/simulator/util/ServicePool.java | ||
---|---|---|
/*
|
||
* This program is a part of the IoTa project.
|
||
*
|
||
* Copyright © 2008-2012 Université de Caen Basse-Normandie, GREYC
|
||
* Copyright © 2008-2013 Université de Caen Basse-Normandie, GREYC
|
||
*
|
||
* This program is free software: you can redistribute it and/or modify
|
||
* it under the terms of the GNU General Public License as published by
|
||
... | ... | |
*/
|
||
package fr.unicaen.iota.simulator.util;
|
||
|
||
import org.fosstrak.epcis.captureclient.CaptureClient;
|
||
import fr.unicaen.iota.eta.capture.ETaCaptureClient;
|
||
|
||
/**
|
||
* Not a real pool since, from Fosstrak Epcis Capture Client version 0.4.2, a
|
||
... | ... | |
return servicePool;
|
||
}
|
||
|
||
public synchronized CaptureClient getServiceInstance(String EndPointEPR) throws InterruptedException {
|
||
public synchronized ETaCaptureClient getServiceInstance(String EndPointEPR) throws InterruptedException {
|
||
if (available == 0) {
|
||
wait();
|
||
}
|
||
available--;
|
||
CaptureClient service = new CaptureClient(EndPointEPR);
|
||
ETaCaptureClient service = new ETaCaptureClient(EndPointEPR,
|
||
Config.pks_filename, Config.pks_password, Config.trust_pks_filename, Config.trust_pks_password);
|
||
return service;
|
||
}
|
||
|
||
public synchronized void releaseInstance(CaptureClient service) throws InterruptedException {
|
||
public synchronized void releaseInstance(ETaCaptureClient service) throws InterruptedException {
|
||
available++;
|
||
notifyAll();
|
||
}
|
Formats disponibles : Unified diff
Version 1.9
- use TLS for secured links
- SigMa is now fully functionnal
- completed documention
- a lot of bugs fixed!
- signature creation from the canonical form of the event
- signature creation using ECDSA algorithm
- signature is correctly verified
- manage the extension identifying the owner of the event
- if no identity is provided, the identity of the certificate is used
- access to the web interface of policy management is made by
certificate
- if no identity is provided, the identity of the certificate is used
- create and use certificates for TLS
- configure Apache Tomcat for TLS
- show SigMa library (SigMa-Commons)