Révision bf9c3717
Ajouté par Remy Menard il y a environ 11 ans
SigMa/SigMa/src/main/java/fr/unicaen/iota/sigma/service/SigMaService.java | ||
---|---|---|
import org.fosstrak.epcis.model.EPCISEventType;
|
||
|
||
/**
|
||
* This
|
||
* <code>SigMAService</code> implements the SigMA web service. It receives and
|
||
* This <code>SigMAService</code> implements the SigMA web service. It receives and
|
||
* verifies its signature.
|
||
*/
|
||
public class SigMaService implements SigMaServicePortType {
|
||
... | ... | |
Verification verification = new Verification();
|
||
VerifyResponse response = new VerifyResponse();
|
||
|
||
boolean value;
|
||
boolean value = false;
|
||
try {
|
||
SigMaFunctions sigMAFunctions = new SigMaFunctions(Constants.KEY_STORE_FILE_PATH, Constants.KEY_STORE_PASSWORD);
|
||
value = sigMAFunctions.verify(event);
|
||
// value = true;
|
||
response.setValue(value);
|
||
} catch (Exception e) {
|
||
log.error("Error during verification", e);
|
||
response.setMessage(e.getMessage());
|
||
}
|
||
response.setValue(value);
|
||
verification.setVerifyResponse(response);
|
||
log.info("Event signature verified");
|
||
log.info("Event signature verified: " + value);
|
||
return verification;
|
||
// } catch (FileNotFoundException ex) {
|
||
// log.fatal("", ex);
|
||
// } catch (CertificateException ex) {
|
||
// log.fatal("", ex);
|
||
// } catch (IOException ex) {
|
||
// log.fatal("", ex);
|
||
// } catch (NoSuchAlgorithmException ex) {
|
||
// log.fatal("", ex);
|
||
// } catch (InvalidKeyException ex) {
|
||
// log.fatal("", ex);
|
||
// } catch (SignatureException ex) {
|
||
// log.fatal("", ex);
|
||
// } catch (java.security.cert.CertificateException ex) {
|
||
// log.fatal("", ex);
|
||
// } catch (NoSuchPaddingException ex) {
|
||
// log.fatal("", ex);
|
||
// } catch (IllegalBlockSizeException ex) {
|
||
// log.fatal("", ex);
|
||
// } catch (BadPaddingException ex) {
|
||
// log.fatal("", ex);
|
||
// }
|
||
}
|
||
|
||
}
|
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