Projet

Général

Profil

« Précédent | Suivant » 

Révision 96454bcd

Ajouté par Sylvain Sauvage il y a plus de 11 ans

Version 1.9-mock

This is version 1.9-mock. 1.9 because the API still have changes pending
(principally relative to the Discovery Services). “mock” because TLS
configuration is not yet available and the signatures (SigMa) are not fully
implemented.

  • All:
    - code cleaned and refactored
    - lots of bugs fixed
    - dependencies checked and trimmed
    - documentation added
    - Identity handling added
  • New library modules (Mu, Nu)
  • New signature modules (SigMa)
  • Access Layer and User interfaces (ALfA and OMeGa):
    - code refactored
    - new, better APIs
    - Identity handling added
    - use EPCglobal and DS events (no proxy types anymore)
  • New tempororay DSeTa web service (pending new DS)
  • ETa corrected and added to the IoTa-Installer
    - ETa-Callback modules are now available as web applications
    - filtering rules: if a part of an event is not allowed, now the whole
    event is deleted from the result (before only the rejectd part was)
  • CaPPa: overall refactoring of XACML handling
    - new temporary User web service
    - new Xi module: XACML Interrogation web service (was two modules: TCP and
    servlet)
  • PSi now signs its events
  • Installer, now also installs or configures:
    - ETa and its Callback modules
    - ActiveMQ
    - SigMa
    - certificate/signing key
  • Greyc letters figures:
    - new simplified figures (sans IoTa and simplified IoTa)
    - new figure for ETa modules
    - show 3rd party clients
    - data flows specified
    - TLS and link security added
    - IDs and trusted IDs added
    - color adjusted for printing
    - GREYC logo added

Voir les différences:

BETa/src/main/java/fr/unicaen/iota/application/util/Utils.java
package fr.unicaen.iota.application.util;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Date;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
......
public final class Utils {
private static final Log log = LogFactory.getLog(Utils.class);
private Utils() {
}
public static String generateSessionId(){
String sessionID;
java.util.Date today = new java.util.Date();
public static String generateSessionId() {
try {
sessionID = MD5.MD5_Algo(Long.toString(today.getTime()));
} catch (NoSuchAlgorithmException e) {
log.error("Can't generate SessionId", e);
return null;
String date = Long.toString(new Date().getTime());
byte[] digest = MD5.digest(date.getBytes("UTF-8"));
return new BigInteger(1, digest).toString(16);
} catch (UnsupportedEncodingException e) {
log.error("Can't generate SessionId", e);
return null;
}
return sessionID;
}
private static MessageDigest MD5;
static {
try {
MD5 = MessageDigest.getInstance("MD5");
} catch (NoSuchAlgorithmException e) {
log.fatal("MD5 not avalaible", e);
}
}
}

Formats disponibles : Unified diff