Projet

Général

Profil

« Précédent | Suivant » 

Révision 19b58bab

Ajouté par Remy Menard il y a plus de 11 ans

Version 1.9

  • All:
    - use TLS for secured links
    - SigMa is now fully functionnal
    - completed documention
    - a lot of bugs fixed!
  • SigMa:
    - signature creation from the canonical form of the event
    - signature creation using ECDSA algorithm
    - signature is correctly verified
  • ETa:
    - manage the extension identifying the owner of the event
    - if no identity is provided, the identity of the certificate is used
  • EpcisPHi:
    - access to the web interface of policy management is made by
    certificate
  • OMeGa:
    - if no identity is provided, the identity of the certificate is used
  • IoTa-Installer:
    - create and use certificates for TLS
    - configure Apache Tomcat for TLS
  • Greyc letters figures:
    - show SigMa library (SigMa-Commons)

Voir les différences:

PSi/src/main/java/fr/unicaen/iota/simulator/model/BaseEvent.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.model;
import fr.unicaen.iota.eta.capture.ETaCaptureClient;
import fr.unicaen.iota.mu.Constants;
import fr.unicaen.iota.mu.Utils;
import fr.unicaen.iota.sigma.SigMaFunctions;
import fr.unicaen.iota.simulator.util.Config;
import fr.unicaen.iota.simulator.util.ServicePool;
......
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.datatype.XMLGregorianCalendar;
import javax.xml.namespace.QName;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.fosstrak.epcis.captureclient.CaptureClient;
import org.fosstrak.epcis.captureclient.CaptureClientException;
import org.fosstrak.epcis.model.EPCISBodyType;
import org.fosstrak.epcis.model.EPCISDocumentType;
......
}
setExtensionsObjects(event, extensionsObjects);
try {
Utils.insertExtension(event, Constants.URN_IOTA, Constants.EXTENSION_OWNER_ID, Config.eventOwner);
} catch (ParserConfigurationException ex) {
log.error("An error during insertion of the owner of the event occurred", ex);
}
if (Config.sign) {
SigMaFunctions sigMaFunctions = new SigMaFunctions(Config.keystore, Config.keystore_password);
SigMaFunctions sigMaFunctions = new SigMaFunctions(Config.sigma_keystore, Config.sigma_keystore_password);
try {
sigMaFunctions.sign(event);
} catch (Exception ex) {
......
}
// get the capture client and capture the event
String captureUrl = getInfrastructure().getServiceAddress();
CaptureClient client;
ETaCaptureClient client;
try {
client = ServicePool.getInstance().getServiceInstance(captureUrl);
} catch (InterruptedException ex) {

Formats disponibles : Unified diff