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:

ALfA/ALfA/src/main/java/fr/unicaen/iota/application/operations/DiscoveryOperation.java
/*
* This program is a part of the IoTa Project.
* 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
* Copyright © 2008-2012 Orange Labs
*
*
* 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
* the Free Software Foundation, either version 3 of the License, or
......
private static final Log log = LogFactory.getLog(DiscoveryOperation.class);
private final Identity identity;
private String DS_SERVICE_ADDRESS;
private final String pksFilename;
private final String pksPassword;
private final String trustPksFilename;
private final String trustPksPassword;
private final CallbackClient client;
private final String sessionID;
private final Set<String> visitedSet = new HashSet<String>();
private final DSeTaClient dSClient;
public DiscoveryOperation(Identity identity, String ds_service_address) {
public DiscoveryOperation(Identity identity, String ds_service_address, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword) {
super();
this.identity = identity;
this.DS_SERVICE_ADDRESS = ds_service_address;
this.pksFilename = pksFilename;
this.pksPassword = pksPassword;
this.trustPksFilename = trustPksFilename;
this.trustPksPassword = trustPksPassword;
this.client = null;
this.sessionID = null;
this.dSClient = new DSeTaClient(identity, DS_SERVICE_ADDRESS);
this.dSClient = new DSeTaClient(identity, DS_SERVICE_ADDRESS, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
}
public DiscoveryOperation(Identity identity, String dsAddress, String sessionID, CallbackClient client) {
public DiscoveryOperation(Identity identity, String dsAddress, String pksFilename, String pksPassword, String trustPksFilename, String trustPksPassword, String sessionID, CallbackClient client) {
super();
this.identity = identity;
this.DS_SERVICE_ADDRESS = dsAddress;
this.pksFilename = pksFilename;
this.pksPassword = pksPassword;
this.trustPksFilename = trustPksFilename;
this.trustPksPassword = trustPksPassword;
this.client = client;
this.sessionID = sessionID;
this.dSClient = new DSeTaClient(identity, DS_SERVICE_ADDRESS);
this.dSClient = new DSeTaClient(identity, DS_SERVICE_ADDRESS, pksFilename, pksPassword, trustPksFilename, trustPksPassword);
}
private List<TEventItem> getEvents(String EPC) throws RemoteException {
......
} else if (s.getType() == TServiceType.IDED_EPCIS) {
result.add(s.getUri().toString());
if (client != null && !visitedSet.contains(s.getUri().toString())) {
new EpcisRequest(s.getUri().toString(), EPC, identity, sessionID, client).start();
new EpcisRequest(s.getUri().toString(), pksFilename, pksPassword, trustPksFilename, trustPksPassword, EPC, identity, sessionID, client).start();
visitedSet.add(s.getUri().toString());
}
} // else: do nothing

Formats disponibles : Unified diff